babel/test/runtime.js
Sebastian McKenzie 6065220f9b add runtime test
2014-11-14 09:12:54 +11:00

16 lines
391 B
JavaScript

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/));
});
});