Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should not display anything if verbose turned off even if duplicate row found', () => {
const compiler = new RemoveDuplicates({
processRows: true,
verbose: false
});
const examples = new Examples();
const row = new TableRow();
row.cells.push(new TableCell('hello'));
row.cells.push(new TableCell('world'));
examples.body.push(row);
examples.body.push(row.clone());
compiler._filterRows(examples, {}, {});
expect(console.log.called, 'console.log is called').to.be.false;
expect(console.warn.called, 'console.warn is called').to.be.false;
})
});