Skip to content
Myr

chore(test): fix production build unit tests

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

authored by Michel Weststrate · committed by Michel Weststrate · parent ca18dd6 · Browse files · 1 file+5 added−3 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+5 added−3 removed

  • tests:+5 added−3 removed

1 file+5 added−3 removed

modified:__tests__/base.js+5 added-3 removed
1302 unmodified lines
1303 const nextState = produce(baseState, draft => {1304 draft.x = "s2"1305 draft.y = 11306 draft.z = NaN1307 expect(draft[DRAFT_STATE].assigned_.x).toBe(true)1308 expect(draft[DRAFT_STATE].assigned_.y).toBe(undefined)1309 expect(draft[DRAFT_STATE].assigned_.z).toBe(undefined)1307 if (!isProd) {1308 expect(draft[DRAFT_STATE].assigned_.x).toBe(true)1309 expect(draft[DRAFT_STATE].assigned_.y).toBe(undefined)1310 expect(draft[DRAFT_STATE].assigned_.z).toBe(undefined)1311 }1312 })1313 expect(nextState.x).toBe("s2")1314 })1315
1185 unmodified lines