File size: 627 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
/**
* @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 );
} );
} );
|