Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const expected = 'processed src/foo-bar.html content';
const context = {
async: () => function(err, code, map) {
if (err) {
done(err);
return;
}
assert.equal(code, expected);
assert.equal(map.version, 3);
done();
},
resourcePath: 'src/foo-bar.html'
};
loader.call(context, content, preprocess);
});