Skip to content

Commit a52614a

Browse files
committed
test(ts): tiny improvement
1 parent dd25143 commit a52614a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

__tests__/produce.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ it("can produce nothing", () => {
183183
})
184184

185185
it("works with `void` hack", () => {
186-
let obj: {readonly a: number} = {a: 1}
187-
let val: typeof obj = produce(obj, s => void s.a++)
186+
let obj = {} as {readonly a: number}
187+
let res = produce(obj, s => void s.a++)
188+
exactType(res, obj)
188189
})
189190

190191
it("works with generic parameters", () => {

0 commit comments

Comments
 (0)