Improve MaxCtrl test coverage
Added tests that cover areas that weren't tested before.
This commit is contained in:
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user