add toIdentifier, toBlock and toStatement tests

This commit is contained in:
Sebastian McKenzie
2014-11-14 00:55:22 +11:00
parent 63a47ef7bb
commit eaac564f11

View File

@@ -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");