Skip to content

Commit

Permalink
test(react): update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Dec 9, 2023
1 parent 41bffb5 commit 88ad6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/tests/context.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('createCodeMirrorWithContext', () => {
expect(Provider.displayName).toBe('CodeMirrorContext.Provider')
vi.spyOn(console, 'error').mockImplementation(noop)
expect(() => renderHook(() => useContext())).toThrowError(
'could not find CodeMirrorContext value; please ensure the component is wrapped in a <Provider>',
'could not find instance from CodeMirrorContext; please ensure the component is wrapped in a <Provider>',
)
expect(console.error).toHaveBeenCalled()
const getConsoleErrorCalledTimes = () => {
Expand Down

0 comments on commit 88ad6dd

Please sign in to comment.