FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Repo.openIndex by tbranyen · Pull Request #198 · nodegit/nodegit · GitHub

Repository navigation

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .js  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Added a backing unit test
  • Loading branch information
tbranyen committed Jul 16, 2014
commit d5e1a030929fbd8a725e0aef2f2bd0d60f80e4f6
7 changes: 7 additions & 0 deletions test/tests/repository.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
});
});
});

Back | FazBrowse Home | New Git URL