Download wp-calypso/client/state/account/test/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/account/test/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/account/test/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/account/test/actions.js
645 Bytes
| import { closeAccount, closeAccountSuccess } from 'calypso/state/account/actions'; | |
| import { ACCOUNT_CLOSE, ACCOUNT_CLOSE_SUCCESS } from 'calypso/state/action-types'; | |
| describe( 'actions', () => { | |
| describe( '#closeAccount', () => { | |
| test( 'should return an action when an account is closed', () => { | |
| const action = closeAccount(); | |
| expect( action ).toEqual( { | |
| type: ACCOUNT_CLOSE, | |
| } ); | |
| } ); | |
| } ); | |
| describe( '#closeAccountSuccess', () => { | |
| test( 'should dispatch an action when an account is closed successfully', () => { | |
| expect( closeAccountSuccess() ).toEqual( { | |
| type: ACCOUNT_CLOSE_SUCCESS, | |
| } ); | |
| } ); | |
| } ); | |
| } ); | |