We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e35db07 commit ea2a390Copy full SHA for ea2a390
test/tests/repository.js
@@ -1,5 +1,7 @@
1
var assert = require("assert");
2
var path = require("path");
3
+var promisify = require("promisify-node");
4
+var fse = promisify(require("fs-extra"));
5
6
describe("Repository", function() {
7
var reposPath = path.resolve("test/repos/workdir/.git");
@@ -41,6 +43,14 @@ describe("Repository", function() {
41
43
});
42
44
45
46
+ it("can utilize repository init options", function() {
47
+ return fse.remove(newRepo).then(function() {
48
+ return Repository.initExt(newRepo, {
49
+ flags: Repository.INIT_FLAG.MKPATH
50
+ });
51
52
53
+
54
it("can read the index", function() {
55
return this.repository.index().then(function(index) {
56
assert.ok(index instanceof Index);
0 commit comments