UNPKG

eye.js

Version:

A JavaScript testing framework for the real world

10 lines (9 loc) 252 B
test(name, type, ...callbacks) { this.data.tested += 1; const spinner = ora(name).start(); if(type == "browser") { this.browser(name, spinner, callbacks).then(fail => this.data.failed += fail) } else { this.node(name, spinner, callbacks); } }