UNPKG

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