1 | const test = require('ava')
|
2 |
|
3 | /*
|
4 | Curried version of the `.is` assertion: patching test object with `.cis` prop to delegate to its `.is` prop
|
5 | https://github.com/avajs/ava/blob/master/docs/03-assertions.md#isvalue-expected-message
|
6 |
|
7 | Usage: t.cis(a)(b) instead of t.is(a, b)
|
8 | */
|
9 | module.exports = (title, fn) =>
|
10 | test(title, t => {
|
11 | t.cis = a => b => t.is(a, b)
|
12 | return fn(t)
|
13 | })
|