-
Notifications
You must be signed in to change notification settings - Fork 13
.Equal()
Arthur Guiot edited this page Oct 14, 2017
·
1 revision
This function is simple: it just checks if the value is equal to something. You can note that it handles arrays and list.
Here is an example:
function sum(a, b) {
return a + b
}
eye.test("sum()", "node",
$ => $(sum(1, 2)).Equal(3)
}
Don't hesitate to ask your questions