Permalink
Browse files

Added a backing unit test

  • Loading branch information...
1 parent 967b414 commit d5e1a030929fbd8a725e0aef2f2bd0d60f80e4f6 @tbranyen tbranyen committed Jul 16, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/tests/repository.js
@@ -6,6 +6,7 @@ describe("Repository", function() {
var newRepo = path.resolve("test/repos/newrepo");
var Repository = require("../../lib/repository");
+ var Index = require("../../lib/index");
before(function() {
var test = this;
@@ -38,4 +39,10 @@ describe("Repository", function() {
return Repository.open(newRepo);
});
});
+
+ it("can read the index", function() {
+ return this.repository.index().then(function(index) {
+ assert.ok(index instanceof Index);
+ });
+ });
});

0 comments on commit d5e1a03

Please sign in to comment.