Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test('DATA_GET_ADDRESSES', () => {
- const actual = data(initialState, {
- type: DATA_GET_ADDRESSES,
- addresses: [
- {
- address: {
- city: 'Mannheim',
- countryIsoCode: '',
- postalCode: '3456',
- street: 'Main street'
- },
- locationKeys: [
- {
- 0: '5627'
- }
- ]
- },
- ],
- });
- expect(actual).toEqual({
- ...initialState,
- addresses: [
- {
- address: {
- city: 'Mannheim',
- countryIsoCode: '',
- postalCode: '3456',
- street: 'Main street'
- },
- locationKeys: [
- {
- 0: '5627'
- }
- ]
- },
- {
- address: {
- city: 'Stuttgart',
- countryIsoCode: '',
- postalCode: '70173',
- street: 'Königstraße'
- },
- locationKeys: [
- {
- 0: '6289'
- }
- ]
- }
- ],
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement