Skip to content

Commit 8664f54

Browse files
committed
explicitly test for hash truncation
1 parent d5bda22 commit 8664f54

File tree

1 file changed

+8
-0
lines changed
  • test/configCases/plugins/banner-plugin-hashing

1 file changed

+8
-0
lines changed

test/configCases/plugins/banner-plugin-hashing/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ it("should interpolate file hash in bundle0 chunk", () => {
2020
banner["hash"].should.not.equal("[hash]");
2121
});
2222

23+
it("should interpolate file hash in bundle0 chunk and respect size limit", () => {
24+
banner["hash"].length.should.equal(10);
25+
});
26+
2327
it("should interpolate chunkHash in bundle0 chunk", () => {
2428
banner["chunkhash"].should.not.equal("[chunkhash]");
2529
});
2630

31+
it("should interpolate chunkHash in bundle0 chunk and respect size limit", () => {
32+
banner["chunkhash"].length.should.equal(10);
33+
});
34+
2735
it("should interpolate name in bundle0 chunk", () => {
2836
banner["name"].should.not.equal("[name]");
2937
});

0 commit comments

Comments
 (0)