From b5cebc66d6292296f3adabde6d518607c8e70fd1 Mon Sep 17 00:00:00 2001 From: John Haley Date: Wed, 24 Sep 2014 17:01:29 -0700 Subject: [PATCH 1/3] Fixed remote.js test --- test/tests/remote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/remote.js b/test/tests/remote.js index 4ff734f3d..be3b5af1c 100644 --- a/test/tests/remote.js +++ b/test/tests/remote.js @@ -30,7 +30,7 @@ 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(), "https://github.com/nodegit/nodegit.git"); }); it("can read the remote name", function() { From a03e044fcb45c654d4e15a4e495a6a0c6e632854 Mon Sep 17 00:00:00 2001 From: John Haley Date: Thu, 25 Sep 2014 10:12:05 -0700 Subject: [PATCH 2/3] Fixed jslint issue with Promise --- .jshintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"] } From 848652eb8fb39e2b13746397418be11468339453 Mon Sep 17 00:00:00 2001 From: John Haley Date: Thu, 25 Sep 2014 10:52:09 -0700 Subject: [PATCH 3/3] Fixed remote.js tests on AppVeyor The assert remote url test was working locally but didn't work on AppVeyor. Now it should work on both. --- test/tests/remote.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tests/remote.js b/test/tests/remote.js index be3b5af1c..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.git"); + assert.equal( + this.remote.url().replace(".git", ""), + "https://github.com/nodegit/nodegit"); }); it("can read the remote name", function() {