UNPKG
eye.js
Version:
latest (1.2.1)
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
0.2.0
0.1.0
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
A JavaScript testing framework for the real world
github.com/arguiot/EyeJS
arguiot/EyeJS
eye.js
/
src
/
includes
/
functions
/
test.js
10 lines
(9 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
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); } }