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.

17 lines
384 B

9 years ago
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)
})
}
}