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('
'); const metaCache = []; const result = GenericDekExtractor.extract({ $, metaCache }); assert.equal(result, null); }); }); });