We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967b414 commit d5e1a03Copy full SHA for d5e1a03
test/tests/repository.js
@@ -6,6 +6,7 @@ describe("Repository", function() {
6
var newRepo = path.resolve("test/repos/newrepo");
7
8
var Repository = require("../../lib/repository");
9
+ var Index = require("../../lib/index");
10
11
before(function() {
12
var test = this;
@@ -38,4 +39,10 @@ describe("Repository", function() {
38
39
return Repository.open(newRepo);
40
});
41
42
+
43
+ it("can read the index", function() {
44
+ return this.repository.index().then(function(index) {
45
+ assert.ok(index instanceof Index);
46
+ });
47
48
0 commit comments