Tests for profile API version

This commit is contained in:
Michael Krasnyk
2016-12-22 23:17:59 +01:00
committed by Patrick Niklaus
parent 0f3a463854
commit ed9d10e96c
2 changed files with 109 additions and 2 deletions
+3 -2
View File
@@ -70,8 +70,9 @@ module.exports = function () {
assert.ok(this.stdout.indexOf(str) > -1);
});
this.Then(/^stderr should contain "(.*?)"$/, (str) => {
assert.ok(this.stderr.indexOf(str) > -1);
this.Then(/^stderr should( not)? contain "(.*?)"$/, (not, str) => {
const contains = this.stderr.indexOf(str) > -1;
assert.ok(typeof not === 'undefined' ? contains : !contains);
});
this.Then(/^stdout should contain \/(.*)\/$/, (regexStr) => {