Download wp-calypso/client/state/current-user/email-verification/test/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/current-user/email-verification/test/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/current-user/email-verification/test/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/current-user/email-verification/test/actions.js
827 Bytes
| import { EMAIL_VERIFY_REQUEST, EMAIL_VERIFY_STATE_RESET } from 'calypso/state/action-types'; | |
| import { verifyEmail, resetVerifyEmailState } from '../actions'; | |
| describe( 'actions', () => { | |
| describe( '#verifyEmail', () => { | |
| test( 'returns request action', () => { | |
| const result = verifyEmail(); | |
| expect( result ).toEqual( { type: EMAIL_VERIFY_REQUEST, showGlobalNotices: false } ); | |
| } ); | |
| test( 'returns request action with notices', () => { | |
| const result = verifyEmail( { showGlobalNotices: true } ); | |
| expect( result ).toEqual( { type: EMAIL_VERIFY_REQUEST, showGlobalNotices: true } ); | |
| } ); | |
| } ); | |
| describe( '#resetVerifyEmailState', () => { | |
| test( 'returns reset action', () => { | |
| const result = resetVerifyEmailState(); | |
| expect( result ).toEqual( { type: EMAIL_VERIFY_STATE_RESET } ); | |
| } ); | |
| } ); | |
| } ); | |