Skip to content

Commit

Permalink
fix test - create copy of mockdata
Browse files Browse the repository at this point in the history
  • Loading branch information
varadarajan-tw committed Feb 3, 2025
1 parent 21fdafa commit f0fcbe8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ describe('shared', () => {
})

it('should return an array of UserOperation objects with Android Advertising ID', () => {
oneMockPayload.mobile_advertising_id = '3b6e47b314374ba2b3c9446e4d0cd1e5'

const results = assembleRawOps(oneMockPayload, 'remove')
const mockPayload = {
...oneMockPayload,
mobile_advertising_id: '3b6e47b314374ba2b3c9446e4d0cd1e5'
}
const results = assembleRawOps(mockPayload, 'remove')
expect(results).toEqual([
{
UserId: 'CAESEHIV8HXNp0pFdHgi2rElMfk',
Expand Down

0 comments on commit f0fcbe8

Please sign in to comment.