Skip to content

Commit

Permalink
chore: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Beknar Askarov committed Sep 7, 2019
1 parent 38c3fed commit 3f5f033
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/form/samples/emit-asset-file/_config.js
Expand Up @@ -32,6 +32,16 @@ module.exports = {
'asset has correct source'
);
assert.ok(keys[1].endsWith('.js'), `${keys[1]} ends with ".js"`);
},
writeBundle(outputBundle) {
const keys = Object.keys(outputBundle);
const asset = outputBundle[keys[0]];
assert.ok(
asset.source.equals(
fs.readFileSync(path.resolve(__dirname, '_expected', asset.fileName))
),
'asset has correct source'
);
}
}
}
Expand Down

0 comments on commit 3f5f033

Please sign in to comment.