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 call splitCssIfIeLimitIsReached unconditionally and correctly when IE >= 8 is to be supported', async function() {
const stub = sinon
.stub(
require('assetgraph/lib/TransformQueue').prototype,
'splitCssIfIeLimitIsReached'
)
.returnsThis();
const assetGraph = new AssetGraph();
await assetGraph.loadAssets({
url: 'http://example.com/index.html',
type: 'Html',
text: ''
});
try {
await assetGraph.buildProduction({ version: false, browsers: 'ie >= 8' });
expect(stub, 'to have calls satisfying', function() {
stub({ type: 'Css' }, { minimumIeVersion: 8 });
});
} finally {