Download wp-calypso/packages/data-stores/src/onboard/test/actions.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/onboard/test/actions.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/onboard/test/actions.ts
-
curl -L -o actions.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/onboard/test/actions.ts
627 Bytes
| /** | |
| * @jest-environment jsdom | |
| */ | |
| import { setProfilerData } from '../actions'; | |
| import { ProfilerData } from '../types'; | |
| describe( 'actions', () => { | |
| const expectedProfilerData = { | |
| industry: 'clothing_and_accessories', | |
| persona: 'im_already_selling_online', | |
| platforms: [ 'shopify' ], | |
| store_location: 'us', | |
| store_name: 'Beautifully Handmade, 手工精美', | |
| } as ProfilerData; | |
| it( 'should return a SET_PROFILER_DATA action', () => { | |
| const expected = { | |
| type: 'SET_PROFILER_DATA', | |
| profilerData: expectedProfilerData, | |
| }; | |
| expect( setProfilerData( expectedProfilerData ) ).toEqual( expected ); | |
| } ); | |
| } ); | |