UNPKG

moy-fp

Version:
24 lines (20 loc) 449 B
import __ from '../../src/Function/__' /** * String -> String */ import headString from '../../src/String/headString' test('headString(not using __), not empty string', () => { expect( headString('murakami') ).toBe('m') }) test('headString(not using __), empty string', () => { expect( headString('') ).toBe('') }) test('headString(using __), not empty string', () => { expect( headString(__)('murakami') ).toBe('m') })