diff --git a/test/util.js b/test/util.js index b0e15978ec..e7dfbff4ad 100644 --- a/test/util.js +++ b/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");