Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 8172bcd

Browse files
committed
Fix incorrect argument count provided in test expectencies
The 'reason' argument is no longer supported.
1 parent 98964b9 commit 8172bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/__tests__/Autocomplete-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ describe('Autocomplete acceptance tests', () => {
134134
const tree = mount(AutocompleteComponentJSX({ inputProps }))
135135
handlers.forEach((handler, i) => {
136136
tree.find('input').simulate(handler.toLowerCase())
137-
expect(spies[i].mock.calls.length).toBe(1, `${handler} handler was not called`)
138-
expect(spies[i].mock.calls[0][0]).toBeDefined(`${handler} handler did not receive event`)
137+
expect(spies[i].mock.calls.length).toBe(1)
138+
expect(spies[i].mock.calls[0][0]).toBeDefined()
139139
})
140140
})
141141

0 commit comments

Comments
 (0)