add toIdentifier, toBlock and toStatement tests
This commit is contained in:
10
test/util.js
10
test/util.js
@@ -1,5 +1,6 @@
|
||||
var assert = require("assert");
|
||||
var util = require("../lib/6to5/util");
|
||||
var t = require("../lib/6to5/types");
|
||||
|
||||
suite("util", function () {
|
||||
test("duplicate mutator map");
|
||||
@@ -46,6 +47,15 @@ suite("util", function () {
|
||||
|
||||
test("getIds");
|
||||
|
||||
test("toStatement");
|
||||
|
||||
test("toBlock");
|
||||
|
||||
test("toIdentifier", function () {
|
||||
assert.equal(t.toIdentifier(t.identifier("swag")), "swag");
|
||||
assert.equal(t.toIdentifier("swag-lord"), "swagLord");
|
||||
});
|
||||
|
||||
test("isReferenced");
|
||||
|
||||
test("removeProperties");
|
||||
|
||||
Reference in New Issue
Block a user