Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. test('DATA_GET_ADDRESSES', () => {
  2. const actual = data(initialState, {
  3. type: DATA_GET_ADDRESSES,
  4. addresses: [
  5. {
  6. address: {
  7. city: 'Mannheim',
  8. countryIsoCode: '',
  9. postalCode: '3456',
  10. street: 'Main street'
  11. },
  12. locationKeys: [
  13. {
  14. 0: '5627'
  15. }
  16. ]
  17. },
  18. ],
  19. });
  20.  
  21. expect(actual).toEqual({
  22. ...initialState,
  23. addresses: [
  24. {
  25. address: {
  26. city: 'Mannheim',
  27. countryIsoCode: '',
  28. postalCode: '3456',
  29. street: 'Main street'
  30. },
  31. locationKeys: [
  32. {
  33. 0: '5627'
  34. }
  35. ]
  36. },
  37. {
  38. address: {
  39. city: 'Stuttgart',
  40. countryIsoCode: '',
  41. postalCode: '70173',
  42. street: 'Königstraße'
  43. },
  44. locationKeys: [
  45. {
  46. 0: '6289'
  47. }
  48. ]
  49. }
  50. ],
  51. });
  52. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement