Skip to content

Commit 16bbb63

Browse files
committed
Fix notes can be removed test
1 parent a5865b7 commit 16bbb63

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/tests/note.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ describe("Note", function() {
5858
var noteRef = "refs/notes/commits";
5959
var sig = Signature.create("John", "john@doe.com", Date.now(), 0);
6060

61-
return Note.remove(this.repository, noteRef, sig, sig, sha)
61+
return Note.create(this.repository, noteRef, sig, sig, sha, "Testing!", 1)
62+
.then((noteSha) => Note.remove(this.repository, noteRef, sig, sig, sha))
6263
.then(function() {
6364
return Note.read(test.repository, noteRef, sha).catch(function(ex) {
64-
assert.equal(ex.message, "Note could not be found");
65+
assert.equal(ex.message, "note could not be found");
6566
done();
6667
});
67-
});
68+
})
69+
.catch(done);
6870
});
6971
});

0 commit comments

Comments
 (0)