Skip to content

.Equal()

Arthur Guiot edited this page Oct 14, 2017 · 1 revision

How it works?

This function is simple: it just checks if the value is equal to something. You can note that it handles arrays and list.

How to use it?

Here is an example:

function sum(a, b) {
    return a + b
}

eye.test("sum()", "node",
    $ => $(sum(1, 2)).Equal(3)
}

⚠️ Questions?

Don't hesitate to ask your questions ⁉️ in the issue part 😁

Clone this wiki locally