Download wp-calypso/packages/data-stores/src/stepper-internal/test/action.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/stepper-internal/test/action.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/stepper-internal/test/action.ts
-
curl -L -o action.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/stepper-internal/test/action.ts
468 Bytes
| import { setStepData, clearStepData } from '../actions'; | |
| describe( 'StepperInternal actions', () => { | |
| it( 'should return a SET_STEP_DATA Action', () => { | |
| const data = {}; | |
| const expected = { | |
| type: 'SET_STEP_DATA', | |
| data, | |
| }; | |
| expect( setStepData( data ) ).toEqual( expected ); | |
| } ); | |
| it( 'should return a CLEAR_STEP_DATA Action', () => { | |
| const expected = { | |
| type: 'CLEAR_STEP_DATA', | |
| }; | |
| expect( clearStepData() ).toEqual( expected ); | |
| } ); | |
| } ); | |