2016-06-10 01:10:21 +00:00
|
|
|
"use strict";
|
|
|
|
require("typings-test");
|
2016-08-26 07:21:42 +00:00
|
|
|
const smartcli = require("../dist/index");
|
|
|
|
let beautylog = require("beautylog");
|
|
|
|
let should = require("should");
|
2016-06-10 02:13:23 +00:00
|
|
|
describe("smartcli.Smartcli class", function () {
|
2016-08-26 07:21:42 +00:00
|
|
|
let smartCliTestObject;
|
2016-06-10 02:13:23 +00:00
|
|
|
describe("new Smartcli()", function () {
|
|
|
|
it("should create a new Smartcli", function () {
|
|
|
|
smartCliTestObject = new smartcli.Smartcli();
|
|
|
|
smartCliTestObject.should.be.instanceof(smartcli.Smartcli);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
describe(".addCommand", function () {
|
|
|
|
it("should add an command", function () {
|
|
|
|
smartCliTestObject.addCommand({
|
|
|
|
commandName: "awesome"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
describe(".standardTask", function () {
|
|
|
|
it("should start parsing a standardTask", function (done) {
|
|
|
|
smartCliTestObject.standardTask()
|
2016-08-26 07:21:42 +00:00
|
|
|
.then(() => {
|
2016-06-10 02:13:23 +00:00
|
|
|
console.log("this is the standard Task!");
|
|
|
|
});
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
describe(".startParse", function () {
|
|
|
|
it("should start parsing the CLI input", function () {
|
|
|
|
smartCliTestObject.startParse();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
2016-10-14 22:56:02 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUFzQjtBQUV0QiwwQ0FBMkM7QUFDM0MsSUFBSSxTQUFTLEdBQUcsT0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDO0FBQ3JDLElB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