You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
384 B
16 lines
384 B
exports.assertion = function (fn, args) {
|
|
this.message = 'Testing custom eval...'
|
|
this.expected = true
|
|
this.value = function (res) {
|
|
return res.value
|
|
}
|
|
this.pass = function (val) {
|
|
return val === this.expected
|
|
}
|
|
this.command = function (cb) {
|
|
var self = this
|
|
return this.api.execute(fn, args || [], function (res) {
|
|
cb.call(self, res)
|
|
})
|
|
}
|
|
}
|
|
|