File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ describe('Dev Tools Extension (Without Extension)', () => {
57
57
beforeAll ( ( ) => {
58
58
const useContextDevTools = require ( './index' ) . default ;
59
59
dispatchFn = jest . fn ( ) ;
60
- dispatchContext = useContextDevTools ( dispatchFn ) ;
60
+ dispatchContext = useContextDevTools ( ) ;
61
61
} ) ;
62
62
63
63
test ( 'Should initialize devTools' , ( ) => {
64
64
dispatchContext . sendDispatch ( { } ) ;
65
- expect ( dispatchFn ) . toHaveBeenCalledWith ( { } ) ;
65
+ expect ( dispatchFn ) . not . toHaveBeenCalledWith ( { } ) ;
66
66
} ) ;
67
67
68
68
test ( 'Should be able to send updated state' , ( ) => {
@@ -79,6 +79,7 @@ describe('Dev Tools Extension (Without Extension)', () => {
79
79
80
80
test ( 'Should be able to unsubscribe on tab close' , ( ) => {
81
81
window . dispatchEvent ( new Event ( 'beforeunload' ) ) ;
82
+ dispatchContext . disconnectDevTools ( ) ;
82
83
expect ( devDisconnect ) . not . toHaveBeenCalled ( ) ;
83
84
} ) ;
84
85
} )
You can’t perform that action at this time.
0 commit comments