You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
491 B
JavaScript
19 lines
491 B
JavaScript
import assert from 'assert';
|
|
import cheerio from 'cheerio';
|
|
|
|
// import HTML from './fixtures/html'
|
|
import GenericDekExtractor from './extractor';
|
|
|
|
describe('GenericDekExtractor', () => {
|
|
describe('extract({ $, metaCache })', () => {
|
|
it('returns null if no dek can be found', () => {
|
|
const $ = cheerio.load('<div></div>');
|
|
const metaCache = [];
|
|
const result =
|
|
GenericDekExtractor.extract({ $, metaCache });
|
|
|
|
assert.equal(result, null);
|
|
});
|
|
});
|
|
});
|