Merge branch 'tests' of https://github.com/arthurvr/babel into arthurvr-tests

This commit is contained in:
Sebastian McKenzie 2015-06-25 12:12:05 +01:00
commit e6846b2730
2 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,7 @@ See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
## 5.6.5
* *Bug Fix**
* **Bug Fix**
* Fix nested functions causing rest parameter optimisation to not properly detect when it should deopt on a reference.
* **Internal**
* Update Regenerator `0.8.31`.

View File

@ -101,6 +101,11 @@ suite("util", function () {
assert.strictEqual(util.booleanify("inline"), "inline");
});
test("resolve", function () {
assert.notEqual(util.resolve("is-integer").indexOf("node_modules/is-integer"), -1);
assert.equal(util.resolve("foo-bar-module"), null);
});
test("toIdentifier", function () {
assert.equal(t.toIdentifier(t.identifier("swag")), "swag");
assert.equal(t.toIdentifier("swag-lord"), "swagLord");