chore: remove deprecation message when using cheerio's default export (#3225)

This commit is contained in:
Juan Martín Seery 2022-04-27 15:43:31 -03:00 committed by GitHub
parent f23d6c528e
commit 41c70ae503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 45 additions and 45 deletions

View file

@ -5,7 +5,7 @@
*/
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
let fixture;

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import srcsetParse from 'srcset-parse';

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Attributes', async () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro basics', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Component children', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Class List', async () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('<Code>', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('CSS Bundling (ESM import)', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
// note: the hashes should be deterministic, but updating the file contents will change hashes

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Directives', async () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Doctype', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Dynamic components', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Expressions', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Dynamic component fallback', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro.*', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
let fixture;

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown with draft posts disabled', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import addClasses from './fixtures/astro-markdown-plugins/add-classes.mjs';

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown Shiki', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown URL', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Astro Markdown', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Pages', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Pagination', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Partial HTML', async () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import path from 'path';
import { loadFixture } from './test-utils.js';

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Development Routing', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Global Fetch', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('LitElement test', function () {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Markdown tests', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import eol from 'eol';
import { loadFixture } from './test-utils.js';

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Preact component', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Remote CSS', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Preact', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: React', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Solid', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Svelte', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Slots: Vue', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { isWindows, loadFixture } from './test-utils.js';
describe('Solid component', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
describe('Code component inside static build', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture, isWindows } from './test-utils.js';
describe('Static build - frameworks', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
function addLeadingSlash(path) {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { isWindows, loadFixture } from './test-utils.js';
describe('Svelte component', () => {

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
let fixture;

View file

@ -1,5 +1,5 @@
import { expect } from 'chai';
import cheerio from 'cheerio';
import * as cheerio from 'cheerio';
import { isWindows, loadFixture } from './test-utils.js';
describe('Vue component', () => {