diff --git a/.jshintrc b/.jshintrc index 892f4c7a6..ea2e2b7b1 100644 --- a/.jshintrc +++ b/.jshintrc @@ -21,5 +21,6 @@ "beforeEach": true, "after": true, "afterEach": true - } + }, + "predef": ["-Promise"] } diff --git a/test/tests/remote.js b/test/tests/remote.js index 4ff734f3d..a830f783a 100644 --- a/test/tests/remote.js +++ b/test/tests/remote.js @@ -30,7 +30,9 @@ describe("Remote", function() { }); it("can read the remote url", function() { - assert.equal(this.remote.url(), "https://github.com/nodegit/nodegit"); + assert.equal( + this.remote.url().replace(".git", ""), + "https://github.com/nodegit/nodegit"); }); it("can read the remote name", function() {