Skip to content

Commit

Permalink
chore: harden camera case
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Mar 4, 2023
1 parent 44ed30a commit 60fb9a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fiber/tests/core/renderer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,10 @@ describe('renderer', () => {
const store = await act(async () => root.render(<Test />))
expect(store.getState().camera).toBe(camera)

root.configure({ camera: {} })
root.configure({ camera: { name: 'test' } })

await act(async () => root.render(<Test />))
expect(store.getState().camera).toBe(camera)
expect(camera.name).not.toBe('test')
})
})

0 comments on commit 60fb9a9

Please sign in to comment.