2016-02-23 06:06:54 +00:00
|
|
|
/// <reference path="../ts/typings/main.d.ts" />
|
|
|
|
var smartstring = require("../dist/index.js");
|
|
|
|
var should = require("should");
|
|
|
|
describe("smartstring", function () {
|
|
|
|
describe(".git()", function () {
|
|
|
|
var testGit = smartstring.git("git+https://github.com/pushrocks/smartstring.git");
|
|
|
|
it("should return a .host", function () {
|
|
|
|
testGit.host
|
|
|
|
.should.equal("github.com");
|
|
|
|
});
|
|
|
|
it("should return a .user", function () {
|
|
|
|
testGit.user
|
|
|
|
.should.equal("pushrocks");
|
|
|
|
});
|
|
|
|
it("should return a .repo", function () {
|
|
|
|
testGit.repo
|
|
|
|
.should.equal("smartstring");
|
|
|
|
});
|
|
|
|
it("should return a .httpsUrl", function () {
|
|
|
|
testGit.httpsUrl
|
|
|
|
.should.equal("https://github.com/pushrocks/smartstring.git");
|
|
|
|
});
|
|
|
|
it("should return a .sshUrl", function () {
|
|
|
|
testGit.sshUrl
|
|
|
|
.should.equal("git@github.com:pushrocks/smartstring.git");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2016-02-23 06:09:08 +00:00
|
|
|
//# sourceMappingURL=test.js.map
|