import { describe, given, it } from '@typed/test' import { get } from '../factories' import { runEffects } from './runEffects' import { runWith } from './runWith' export const test = describe(`runWith`, [ given(`Effects -> E`, [ it(`returns Effects`, ({ equal }) => { type E = { e: number } const expected: E = { e: 1 } function* sut() { return equal(expected, yield* runWith(get(), expected)) } runEffects(sut(), {}) }), ]), ])