Skip to content
Myr

test(ts): improve "nothing" test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by aleclarson · committed by Alec Larson · parent c0ea419 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • tests:+2 added−1 removed

1 file+2 added−1 removed

modified:__tests__/produce.ts+2 added-1 removed
195 unmodified lines
196 exactType(result, {} as any[])197})198199it("can produce nothing", () => {200 let val: undefined = produce({}, s => nothing)200 let result = produce({}, _ => nothing)201 exactType(result, undefined)202})203204it("works with `void` hack", () => {205 let obj = {} as {readonly a: number}
17 unmodified lines