smartgit/test/test.ts
2016-06-12 16:46:59 +02:00

38 lines
1013 B
TypeScript

import "typings-test";
import beautylog = require("beautylog");
import path = require("path");
import "should"
import smartgit = require("../dist/index");
describe("smartgit",function(){
describe(".clone",function(){
it("should clone a repository using ssh and sshkey",function(done){
this.timeout(10000);
smartgit.clone({
from:"git@github.com:pushrocks/docs.git",
to:path.resolve("./test/temp/")
}).then(function(){
done();
});
});
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();
});
});
});
describe(".check",function(){
});
describe("commit",function(){
});
describe("init",function(){
});
});