webpack/test/HarmonyExportImportedSpecif...

16 lines
528 B
JavaScript
Raw Normal View History

2019-02-05 17:00:33 +08:00
/* globals describe it */
2017-02-25 20:25:12 +08:00
"use strict";
const HarmonyExportImportedSpecifierDependency = require("../lib/dependencies/HarmonyExportImportedSpecifierDependency");
describe("HarmonyExportImportedSpecifierDependency", () => {
describe("getHashValue", () => {
2018-02-25 18:46:17 +08:00
it("should return empty string on missing module", () => {
// see e.g. PR #4368
2017-02-25 20:25:12 +08:00
var instance = new HarmonyExportImportedSpecifierDependency();
2018-01-24 20:17:21 +08:00
expect(instance.getHashValue(undefined)).toBe("");
expect(instance.getHashValue(null)).toBe("");
2017-02-25 20:25:12 +08:00
});
});
});