use new tapbundle

This commit is contained in:
Philipp Kunz 2017-04-23 15:21:08 +02:00
parent b6375fd8fa
commit 59bcd8dadf
5 changed files with 23 additions and 1273 deletions

View File

@ -41,9 +41,6 @@ class Smartcli {
if (this.argv._.indexOf(commandNameArg) === 0) {
done.resolve(this.argv);
}
else {
done.reject(this.argv);
}
});
return done.promise;
}
@ -131,4 +128,4 @@ class Smartcli {
}
}
exports.Smartcli = Smartcli;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRjbGkuY2xhc3Nlcy5zbWFydGNsaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0Y2xpLmNsYXNzZXMuc21hcnRjbGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBZ0M7QUFDaEMsK0JBQThCO0FBRTlCLDhDQUE2QztBQUU3QyxpQkFBaUI7QUFDakIsNkJBQStCO0FBYS9CO0lBa0JFO1FBVkE7O1dBRUc7UUFDSCwwQkFBcUIsR0FBRyxJQUFJLGVBQVMsRUFBeUIsQ0FBQTtRQUU5RDs7V0FFRztRQUNILDZCQUF3QixHQUFHLElBQUksZUFBUyxFQUE0QixDQUFBO1FBR2xFLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQTtRQUN6QixJQUFJLENBQUMsYUFBYSxHQUFHLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQTtRQUNuQyxJQUFJLENBQUMsWUFBWSxHQUFHLE1BQU0sQ0FBQyxLQUFLLEVBQUUsQ0FBQTtJQUNwQyxDQUFDO0lBRUQ7O09BRUc7SUFDSCxlQUFlLENBQUMsTUFBTSxFQUFFLFFBQVE7UUFDOUIsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUUsUUFBUSxDQUFDLENBQUE7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SxDQUFBO1FBQzFCLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxFQUFFLENBQUE7UUFDM0IsTUFBTSxDQUFBO0lBQ1IsQ0FBQztDQUVGO0FBN0lELDRCQTZJQyJ9

View File

@ -39,6 +39,6 @@
"yargs": "^7.1.0"
},
"devDependencies": {
"tapbundle": "^1.0.5"
"tapbundle": "^1.0.6"
}
}

View File

@ -38,7 +38,9 @@ tap.test('should execute when triggered', async () => {
return expect(hasExecuted).be.true
}).catch(tap.threw)
/*tap.test('should start parsing the CLI input', async () => {
tap.test('should start parsing the CLI input', async () => {
smartCliTestObject.startParse()
return await expect(smartCliTestObject.parseStarted.promise).to.eventually.be.fulfilled
}).catch(tap.threw)*/
}).catch(tap.threw)
tap.start()

View File

@ -35,7 +35,7 @@ export class Smartcli {
*/
allTriggerObservablesMap = new Objectmap<ITriggerObservableObject>()
constructor() {
constructor () {
this.argv = plugins.yargs
this.questionsDone = smartq.defer()
this.parseStarted = smartq.defer()
@ -63,8 +63,6 @@ export class Smartcli {
.then(() => {
if (this.argv._.indexOf(commandNameArg) === 0) {
done.resolve(this.argv)
} else {
done.reject(this.argv)
}
})
return done.promise

1279
yarn.lock

File diff suppressed because it is too large Load Diff