Improve MaxCtrl test coverage

Added tests that cover areas that weren't tested before.
This commit is contained in:
Markus Mäkelä
2018-08-09 11:16:24 +03:00
parent 1447ac2eb9
commit ccdf1c5679
3 changed files with 78 additions and 0 deletions

View File

@ -88,4 +88,12 @@ module.exports = function() {
return request.get(host + resource, {json: true})
})
};
this.sleepFor = function(time) {
return new Promise((resolve, reject) => {
var timer = setInterval(() => {
resolve()
}, time)
})
}
}