Skip to content

Commit

Permalink
add test for line that that breaks code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrostew committed Mar 15, 2018
1 parent d73b71e commit 665201b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/test_assets.js
Expand Up @@ -1064,6 +1064,23 @@ describe("assets", function () {
done();
});

it("Assets.cacheKey ignores globOpts that are overridden", function(done) {
var source1 = new AssetsSource(rootDir, {});
var source2 = new AssetsSource(rootDir, {
globOpts: {
nonegate: false
}
});
var source3 = new AssetsSource(rootDir, {
globOpts: {
nonegate: true
}
});
assert.equal(source1.cacheKey(), source2.cacheKey());
assert.equal(source1.cacheKey(), source3.cacheKey());
done();
});

it("AssetsCollection.cacheKey includes collection sources", function(done) {
var collection1 = new AssetsCollection();
var collection2 = new AssetsCollection();
Expand Down

0 comments on commit 665201b

Please sign in to comment.