webpack/test/configCases/parsing/extended-api/index.js

9 lines
309 B
JavaScript

it("should have __webpack_hash__", function() {
expect(__webpack_hash__).toBeTypeOf("string");
expect(__webpack_hash__).toMatch(/^[0-9a-f]{20}$/);
});
it("should have __webpack_chunkname__", function() {
expect(__webpack_chunkname__).toBeTypeOf("string");
expect(__webpack_chunkname__).toBe("other");
});