16 lines
401 B
JavaScript
16 lines
401 B
JavaScript
var runtime = require("../lib/6to5/runtime-generator");
|
|
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/));
|
|
});
|
|
});
|