UNPKG

cpt-waffle-lotide

Version:
13 lines (12 loc) 377 B
import head from '../head'; describe('head() tests', ():void => { it('checks if head([5,6,7] returns 5', ():void => { expect(head([5,6,7])).toBe(5); }) it(`head(["Hello", "Lighthouse", "Labs"] returns "Hello"` , ():void => { expect(head(["Hello", "Lighthouse", "Labs"])).toBe("Hello"); }) it(`head([]) returns null`, ():void => { expect(head([])).toBe(null); }) })