fix empty whitelist in build-external-helpers - fixes #1129

This commit is contained in:
Sebastian McKenzie
2015-04-03 04:39:39 +11:00
parent c60f3f0e34
commit c6c0bc07e2
2 changed files with 8 additions and 2 deletions

View File

@@ -33,5 +33,11 @@ suite("api", function () {
assert.ok(script.indexOf("classCallCheck") === -1);
assert.ok(script.indexOf("inherits") >= 0);
});
test("empty whitelist", function () {
var script = buildExternalHelpers([]);
assert.ok(script.indexOf("classCallCheck") === -1);
assert.ok(script.indexOf("inherits") === -1);
});
});
});