Skip to content

Commit 36d9bd5

Browse files
committed
Add test case.
1 parent 48c7ca1 commit 36d9bd5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* globals describe, it, beforeEach */
2+
"use strict";
3+
4+
const should = require("should");
5+
const HarmonyExportImportedSpecifierDependency = require("../lib/dependencies/HarmonyExportImportedSpecifierDependency");
6+
7+
describe("HarmonyExportImportedSpecifierDependency", () => {
8+
describe("getHashValue", () => {
9+
it("should return empty string on missing module", () => { // see e.g. PR #4368
10+
var instance = new HarmonyExportImportedSpecifierDependency();
11+
should(instance.getHashValue(undefined)).be.eql("");
12+
should(instance.getHashValue(null)).be.eql("");
13+
});
14+
});
15+
});

0 commit comments

Comments
 (0)