deno.land / x / rambda@v9.1.1 / source / init.spec.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { init } from './init.js'
test('with array', () => { expect(init([ 1, 2, 3 ])).toEqual([ 1, 2 ]) expect(init([ 1, 2 ])).toEqual([ 1 ]) expect(init([ 1 ])).toEqual([]) expect(init([])).toEqual([]) expect(init([])).toEqual([]) expect(init([ 1 ])).toEqual([])})
test('with string', () => { expect(init('foo')).toBe('fo') expect(init('f')).toBe('') expect(init('')).toBe('')})
rambda

Version Info

Tagged at
2 months ago