File size: 582 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
/**
 * @jest-environment jsdom
 */

import { getProfilerData } from '../selectors';
import type { State } from '../reducer';

describe( 'selectors', () => {
	it( 'should return the profiler data', () => {
		const expectedProfilerData = {
			industry: 'clothing_and_accessories',
			persona: 'im_already_selling_online',
			platforms: [ 'shopify' ],
			store_location: 'us',
			store_name: 'Beautifully Handmade, 手工精美',
		};
		const state: State = {
			profilerData: expectedProfilerData,
		};
		expect( getProfilerData( state ) ).toEqual( expectedProfilerData );
	} );
} );