MLD regression tests

This commit is contained in:
Michael Krasnyk
2017-03-12 19:19:57 +01:00
parent 97c442482d
commit 20c6b4682f
2 changed files with 134 additions and 2 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ module.exports = function () {
assert.ok(this.exitCode !== 0 || this.termSignal);
});
this.Then(/^stdout should contain "(.*?)"$/, (str) => {
assert.ok(this.stdout.indexOf(str) > -1);
this.Then(/^stdout should( not)? contain "(.*?)"$/, (not, str) => {
const contains = this.stdout.indexOf(str) > -1;
assert.ok(typeof not === 'undefined' ? contains : !contains);
});
this.Then(/^stderr should( not)? contain "(.*?)"$/, (not, str) => {