smartgit/test/test.ts

38 lines
1013 B
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-12 14:46:59 +00:00
from:"git@github.com:pushrocks/docs.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({
from:"https://github.com/pushrocks/docs.git",
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(){
});
});