16 lines
327 B
JavaScript
16 lines
327 B
JavaScript
import { it, assert } from 'folktest'
|
|
import { dispatch } from '../../src/fantasy-land.js'
|
|
|
|
const obj = {
|
|
'test': a => console.log('test', a)
|
|
}
|
|
|
|
export const Tests = [
|
|
it('whatever', () => {
|
|
const f = dispatch(['fantasy-land/test', 'test'], (f, a) => {
|
|
console.log(f, a)
|
|
})
|
|
console.log(f(1, obj))
|
|
})
|
|
]
|
|
|