moy-fp
Version:
A functional programming library.
31 lines (25 loc) • 448 B
JavaScript
import __ from '../../src/Function/__'
/**
* * -> String
*/
import is from '../../src/Type/is'
test('is(not using __), object', () => {
expect(
is({})
).toBe('Object')
})
test('is(not using __), number', () => {
expect(
is(12)
).toBe('Number')
})
test('is(not using __), function', () => {
expect(
is(() => {})
).toBe('Function')
})
test('is(using __), object', () => {
expect(
is(__)({})
).toBe('Object')
})