Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('ignores file with html pair but wrong resource name', function () {
const code = `export class Bar {}\n`;
const result = preprocessResource(
{
path: path.join('bar', 'foo.js'),
contents: code,
filePair: 'foo.html'
},
preprocessOptions()
);
assert.equal(result.code, code);
});