UNPKG

sharyn

Version:

Combines all the other packages under one.

12 lines (9 loc) 291 B
import cond from './cond' test('cond', () => { expect(cond([])).toBe(undefined) expect(cond([], () => 2)).toBe(2) expect(cond([], 2)).toBe(2) expect(cond([[true, () => 4]])).toBe(4) expect(cond([[[false, true], () => 5]])).toBe(5) expect(cond([[[false, true], 5]])).toBe(5) })