FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bump libgit to 0bf0526 by srajko · Pull Request #1187 · nodegit/nodegit · GitHub

Repository navigation

Prev Previous commit
Next Next commit
Fix notes can be removed test
  • Loading branch information
srajko committed Jan 30, 2017
commit 16bbb63022f9b4be7fb7f32aeaa414d8d26316fe
8 changes: 5 additions & 3 deletions test/tests/note.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ describe("Note", function() {
var noteRef = "refs/notes/commits";
var sig = Signature.create("John", "john@doe.com", Date.now(), 0);

return Note.remove(this.repository, noteRef, sig, sig, sha)
return Note.create(this.repository, noteRef, sig, sig, sha, "Testing!", 1)
.then((noteSha) => Note.remove(this.repository, noteRef, sig, sig, sha))
.then(function() {
return Note.read(test.repository, noteRef, sha).catch(function(ex) {
assert.equal(ex.message, "Note could not be found");
assert.equal(ex.message, "note could not be found");
done();
});
});
})
.catch(done);
});
});

Back | FazBrowse Home | New Git URL