UNPKG

bingo-functional-js

Version:

A port of the PHP bingo-functional library

19 lines (16 loc) 404 B
const { describe } = require('riteway') const { identity } = require('../../../index') describe('identity()', async (assert) => { assert({ given: 'no arguments', should: 'return undefined', actual: identity(), expected: undefined, }) assert({ given: 'an argument of any type', should: 'return the argument value', actual: identity('foo'), expected: 'foo', }) })