Skip to content

Commit

Permalink
test(ts): improve "nothing" test
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 21, 2019
1 parent c0ea419 commit f7e0d35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/produce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ it("does not enforce immutability at the type level", () => {
})

it("can produce nothing", () => {
let val: undefined = produce({}, s => nothing)
let result = produce({}, _ => nothing)
exactType(result, undefined)
})

it("works with `void` hack", () => {
Expand Down

0 comments on commit f7e0d35

Please sign in to comment.