Skip to content

Commit

Permalink
chore(test): fix production build unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Jan 2, 2023
1 parent ca18dd6 commit 07f5cc9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions __tests__/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,9 +1304,11 @@ function runBaseTest(name, useProxies, autoFreeze, useListener) {
draft.x = "s2"
draft.y = 1
draft.z = NaN
expect(draft[DRAFT_STATE].assigned_.x).toBe(true)
expect(draft[DRAFT_STATE].assigned_.y).toBe(undefined)
expect(draft[DRAFT_STATE].assigned_.z).toBe(undefined)
if (!isProd) {
expect(draft[DRAFT_STATE].assigned_.x).toBe(true)
expect(draft[DRAFT_STATE].assigned_.y).toBe(undefined)
expect(draft[DRAFT_STATE].assigned_.z).toBe(undefined)
}
})
expect(nextState.x).toBe("s2")
})
Expand Down

0 comments on commit 07f5cc9

Please sign in to comment.