Skip to content

Commit 5773320

Browse files
committed
Test showing shorter clone syntax
1 parent efb2376 commit 5773320

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

test/tests/clone.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ var promisify = require("promisify-node");
44
var fse = promisify(require("fs-extra"));
55
var local = path.join.bind(path, __dirname);
66

7-
describe("Clone", function() {
7+
describe.only("Clone", function() {
88
var Repository = require(local("../../lib/repository"));
9-
var Clone = require(local("../../lib/clone"));
9+
var clone = require(local("../../lib/clone"));
1010
var NodeGit = require(local("../../"));
1111

1212
var clonePath = local("../repos/clone");
@@ -29,7 +29,7 @@ describe("Clone", function() {
2929
var test = this;
3030
var url = "http://git.tbranyen.com/smart/site-content";
3131

32-
return Clone.clone(url, clonePath).then(function(repo) {
32+
return clone(url, clonePath).then(function(repo) {
3333
assert.ok(repo instanceof Repository);
3434
test.repository = repo;
3535
});
@@ -46,7 +46,7 @@ describe("Clone", function() {
4646
}
4747
};
4848

49-
return Clone.clone(url, clonePath, opts).then(function(repo) {
49+
return clone(url, clonePath, opts).then(function(repo) {
5050
assert.ok(repo instanceof Repository);
5151
test.repository = repo;
5252
});
@@ -66,7 +66,7 @@ describe("Clone", function() {
6666
}
6767
};
6868

69-
return Clone.clone(url, clonePath, opts).then(function(repo) {
69+
return clone(url, clonePath, opts).then(function(repo) {
7070
assert.ok(repo instanceof Repository);
7171
test.repository = repo;
7272
});
@@ -90,7 +90,7 @@ describe("Clone", function() {
9090
}
9191
};
9292

93-
return Clone.clone(url, clonePath, opts).then(function(repo) {
93+
return clone(url, clonePath, opts).then(function(repo) {
9494
assert.ok(repo instanceof Repository);
9595
test.repository = repo;
9696
});
@@ -107,7 +107,7 @@ describe("Clone", function() {
107107
}
108108
};
109109

110-
return Clone.clone(url, clonePath, opts).then(function(repo) {
110+
return clone(url, clonePath, opts).then(function(repo) {
111111
test.repository = repo;
112112
assert.ok(repo instanceof Repository);
113113
});
@@ -118,7 +118,7 @@ describe("Clone", function() {
118118
var prefix = process.platform === "win32" ? "" : "file://";
119119
var url = prefix + local("../repos/empty");
120120

121-
return Clone.clone(url, clonePath).then(function(repo) {
121+
return clone(url, clonePath).then(function(repo) {
122122
assert.ok(repo instanceof Repository);
123123
test.repository = repo;
124124
});
@@ -127,7 +127,7 @@ describe("Clone", function() {
127127
it("will not segfault when accessing a url without username", function() {
128128
var url = "https://github.com/nodegit/private";
129129

130-
return Clone.clone(url, clonePath, {
130+
return clone(url, clonePath, {
131131
remoteCallbacks: {
132132
certificateCheck: function() {
133133
return 1;

0 commit comments

Comments
 (0)