izuna/test/units/index.js
2025-04-17 12:52:29 -05:00

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))
})
]