From 489f9e92b5364c2682a4937a95c25e293217c786 Mon Sep 17 00:00:00 2001 From: Arthur Verschaeve Date: Mon, 22 Jun 2015 16:12:14 +0200 Subject: [PATCH] Add tests for `util.resolve` --- test/core/util.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/core/util.js b/test/core/util.js index b4925d4fb6..7c8a738dd0 100644 --- a/test/core/util.js +++ b/test/core/util.js @@ -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");