UNPKG

functionfoundry

Version:
11 lines (9 loc) 298 B
import test from 'tape' import error from '../src/error' import lookup from '../src/lookup' test('lookup', (t) => { t.plan(3) t.equal( lookup( 'Good', ['Good', 'Bad'] ), 'Good') t.equal( lookup( 1, [1,2], ['Good', 'Bad'] ), 'Good') t.equal( lookup( 2, [1,2], ['bad', 'good'] ), 'good') })