We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b33458 commit 91f4ec8Copy full SHA for 91f4ec8
1 file changed
test/convenience-oid.js
@@ -34,15 +34,13 @@ var knownSha = 'fce88902e66c72b5b93e75bdb5ae717038b221f6';
34
35
exports.fromString = function(test) {
36
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
- });
+ (new git.oid()).fromString(knownSha, function(error, oid) {
+ test.equal(error, null, 'Should not error');
+ test.done();
42
});
43
};
44
45
-exports.fromString = function(test) {
+exports.sha = function(test) {
46
test.expect(2);
47
(new git.oid()).fromString(knownSha, function(error, oid) {
48
oid.sha(function(error, sha) {
0 commit comments