moy-fp
Version:
A functional programming library.
24 lines (20 loc) • 449 B
JavaScript
import __ from '../../src/Function/__'
/**
* String -> String
*/
import lastString from '../../src/String/lastString'
test('lastString(not using __), not empty string', () => {
expect(
lastString('murakami')
).toBe('i')
})
test('lastString(not using __), empty string', () => {
expect(
lastString('')
).toBe('')
})
test('lastString(using __), not empty string', () => {
expect(
lastString(__)('murakami')
).toBe('i')
})