add runtime test
This commit is contained in:
15
test/runtime.js
Normal file
15
test/runtime.js
Normal file
@@ -0,0 +1,15 @@
|
||||
var runtime = require("../lib/6to5/runtime");
|
||||
var assert = require("assert");
|
||||
|
||||
suite("runtime", function () {
|
||||
test("default", function () {
|
||||
var code = runtime();
|
||||
assert.ok(!!code.match(/to5Runtime/));
|
||||
});
|
||||
|
||||
test("custom", function () {
|
||||
var code = runtime("customNamespace");
|
||||
assert.ok(code.match(/customNamespace/));
|
||||
assert.ok(!code.match(/to5Runtime/));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user