@@ -13,7 +13,6 @@ describe("Clone", function() {
1313
1414 var Repository = require ( "../../lib/repository" ) ;
1515 var Clone = require ( "../../lib/clone" ) ;
16- var NodeGit = require ( "../../" ) ;
1716
1817 before ( function ( ) {
1918 return Promise . all ( [
@@ -27,9 +26,7 @@ describe("Clone", function() {
2726
2827 it ( "can clone with http" , function ( ) {
2928 var url = "http://github.com/nodegit/test.git" ;
30- var opts = new NodeGit . CloneOptions ( ) ;
31-
32- opts . ignoreCertErrors = 1 ;
29+ var opts = { ignoreCertErrors : 1 } ;
3330
3431 return Clone . clone ( url , http , opts ) . then ( function ( repository ) {
3532 assert . ok ( repository instanceof Repository ) ;
@@ -38,9 +35,7 @@ describe("Clone", function() {
3835
3936 it ( "can clone with https" , function ( ) {
4037 var url = "https://github.com/nodegit/test.git" ;
41- var opts = new NodeGit . CloneOptions ( ) ;
42-
43- opts . ignoreCertErrors = 1 ;
38+ var opts = { ignoreCertErrors : 1 } ;
4439
4540 return Clone . clone ( url , https , opts ) . then ( function ( repository ) {
4641 assert . ok ( repository instanceof Repository ) ;
@@ -49,9 +44,7 @@ describe("Clone", function() {
4944
5045 it ( "can clone with ssh" , function ( ) {
5146 var url = "git@github.com:nodegit/test.git" ;
52- var opts = new NodeGit . CloneOptions ( ) ;
53-
54- opts . ignoreCertErrors = 1 ;
47+ var opts = { ignoreCertErrors : 1 } ;
5548
5649 return Clone . clone ( url , ssh , opts ) . then ( function ( repository ) {
5750 assert . ok ( repository instanceof Repository ) ;
@@ -60,9 +53,7 @@ describe("Clone", function() {
6053
6154 it ( "can clone with git" , function ( ) {
6255 var url = "git://github.com/nodegit/test.git" ;
63- var opts = new NodeGit . CloneOptions ( ) ;
64-
65- opts . ignoreCertErrors = 1 ;
56+ var opts = { ignoreCertErrors : 1 } ;
6657
6758 return Clone . clone ( url , git , opts ) . then ( function ( repository ) {
6859 assert . ok ( repository instanceof Repository ) ;
@@ -72,7 +63,7 @@ describe("Clone", function() {
7263 it ( "can clone with filesystem" , function ( ) {
7364 var url = "file://" + path . resolve ( "test/repos/empty" ) ;
7465
75- return Clone . clone ( url , file , null ) . then ( function ( repository ) {
66+ return Clone . clone ( url , file ) . then ( function ( repository ) {
7667 assert . ok ( repository instanceof Repository ) ;
7768 } ) ;
7869 } ) ;
0 commit comments