File tree 1 file changed +4
-13
lines changed
src/commons/sagas/__tests__
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change 1
1
import { Chapter , Variant } from 'js-slang/dist/types' ;
2
2
import { expectSaga } from 'redux-saga-test-plan' ;
3
+ import { removeGoogleUserAndAccessToken } from 'src/commons/application/actions/SessionActions' ;
4
+ import { playgroundUpdatePersistenceFile } from 'src/features/playground/PlaygroundActions' ;
3
5
4
6
import { PLAYGROUND_UPDATE_PERSISTENCE_FILE } from '../../../features/playground/PlaygroundTypes' ;
5
7
import { ExternalLibraryName } from '../../application/types/ExternalTypes' ;
6
- import { REMOVE_GOOGLE_USER_AND_ACCESS_TOKEN } from '../../application/types/SessionTypes' ;
7
8
import { actions } from '../../utils/ActionsHelper' ;
8
9
import {
9
10
CHANGE_EXTERNAL_LIBRARY ,
@@ -47,18 +48,8 @@ beforeAll(() => {
47
48
48
49
test ( 'LOGOUT_GOOGLE results in REMOVE_GOOGLE_USER_AND_ACCESS_TOKEN being dispatched' , async ( ) => {
49
50
await expectSaga ( PersistenceSaga )
50
- . put ( {
51
- type : PLAYGROUND_UPDATE_PERSISTENCE_FILE ,
52
- payload : undefined ,
53
- meta : undefined ,
54
- error : undefined
55
- } )
56
- . put ( {
57
- type : REMOVE_GOOGLE_USER_AND_ACCESS_TOKEN ,
58
- payload : undefined ,
59
- meta : undefined ,
60
- error : undefined
61
- } )
51
+ . put ( playgroundUpdatePersistenceFile ( undefined ) )
52
+ . put ( removeGoogleUserAndAccessToken ( ) )
62
53
. provide ( {
63
54
call ( effect , next ) {
64
55
return ;
You can’t perform that action at this time.
0 commit comments