webpack/test/HarmonyExportImportedSpecif...

17 lines
579 B
JavaScript
Raw Normal View History

2017-02-25 20:25:12 +08:00
/* globals describe, it, beforeEach */
"use strict";
const should = require("should");
const HarmonyExportImportedSpecifierDependency = require("../lib/dependencies/HarmonyExportImportedSpecifierDependency");
describe("HarmonyExportImportedSpecifierDependency", () => {
describe("getHashValue", () => {
2018-02-25 09:00:20 +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();
should(instance.getHashValue(undefined)).be.eql("");
should(instance.getHashValue(null)).be.eql("");
});
});
});