Merge pull request #1772 from arthurvr/booleanify-tests
Add tests for util.booleanify
This commit is contained in:
commit
c409f63bbe
@ -95,6 +95,12 @@ suite("util", function () {
|
||||
}, /illegal type for regexify/);
|
||||
});
|
||||
|
||||
test("booleanify", function () {
|
||||
assert.strictEqual(util.booleanify("true"), true);
|
||||
assert.strictEqual(util.booleanify("false"), false);
|
||||
assert.strictEqual(util.booleanify("inline"), "inline");
|
||||
});
|
||||
|
||||
test("toIdentifier", function () {
|
||||
assert.equal(t.toIdentifier(t.identifier("swag")), "swag");
|
||||
assert.equal(t.toIdentifier("swag-lord"), "swagLord");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user