test: assert cleared progression steps are omitted
This commit is contained in:
1 parent
dcfc7f15a7
commit
9216aa2f02
1 file changed
+1
-1
@@ -64,6 +64,6 @@ describe('exercise configuration progression step', () => {
|
||||
const emptySave = [...empty.host.querySelectorAll('button')]
|
||||
.find(b => /^(save|add to routine)$/i.test(b.textContent.trim()))
|
||||
act(() => { emptySave.click() })
|
||||
expect(empty.onSave).toHaveBeenCalledWith(expect.not.objectContaining({ inc: expect.anything() }))
|
||||
expect(empty.onSave.mock.calls[0][0]).not.toHaveProperty('inc')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user