Skip to content

Commit 91f4ec8

Browse files
committed
Updated convenience-oid tests
1 parent 4b33458 commit 91f4ec8

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

test/convenience-oid.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ var knownSha = 'fce88902e66c72b5b93e75bdb5ae717038b221f6';
3434

3535
exports.fromString = function(test) {
3636
test.expect(1);
37-
git.repo('../.git', function(error, repository) {
38-
(new git.oid()).fromString(knownSha, function(error, oid) {
39-
test.equal(error, null, 'Should not error');
40-
test.done();
41-
});
37+
(new git.oid()).fromString(knownSha, function(error, oid) {
38+
test.equal(error, null, 'Should not error');
39+
test.done();
4240
});
4341
};
4442

45-
exports.fromString = function(test) {
43+
exports.sha = function(test) {
4644
test.expect(2);
4745
(new git.oid()).fromString(knownSha, function(error, oid) {
4846
oid.sha(function(error, sha) {

0 commit comments

Comments
 (0)