Skip to content

Commit 77a317c

Browse files
committed
assert that an ExternalModule also updateHash with its ID
1 parent 79cf75a commit 77a317c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/ExternalModule.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ module.exports = some/request;`;
324324
}
325325
};
326326
externalModule.optional = true;
327+
externalModule.id = 12345678;
327328
externalModule.updateHash(hash);
328329
});
329330
it("updates hash with request", function() {
@@ -335,5 +336,8 @@ module.exports = some/request;`;
335336
it("updates hash with optional flag", function() {
336337
hashedText.should.containEql("true");
337338
});
339+
it("updates hash with module id", function() {
340+
hashedText.should.containEql("12345678");
341+
});
338342
});
339343
});

0 commit comments

Comments
 (0)