smartgit/test/test.ts

38 lines
1.0 KiB
TypeScript
Raw Normal View History

2016-06-12 14:46:59 +00:00
import "typings-test";
import beautylog = require("beautylog");
import path = require("path");
import "should"
import smartgit = require("../dist/index");
2016-03-30 23:59:45 +00:00
describe("smartgit",function(){
describe(".clone",function(){
2016-06-12 14:46:59 +00:00
it("should clone a repository using ssh and sshkey",function(done){
2016-03-30 23:59:45 +00:00
this.timeout(10000);
smartgit.clone({
2016-06-25 17:13:19 +00:00
from:"git@gitlab.com:sandboxzone/sandbox-testrepo.git",
2016-03-30 23:59:45 +00:00
to:path.resolve("./test/temp/")
}).then(function(){
done();
});
});
2016-06-12 14:46:59 +00:00
it("should clone a repository using https",function(done){
this.timeout(10000);
smartgit.clone({
2016-06-25 17:13:19 +00:00
from:"https://gitlab.com/sandboxzone/sandbox-testrepo.git",
2016-06-12 14:46:59 +00:00
to:path.resolve("./test/temp2/")
}).then(function(){
done();
});
});
2016-03-30 23:59:45 +00:00
});
describe(".check",function(){
});
describe("commit",function(){
});
describe("init",function(){
});
});