@@ -160,7 +160,7 @@ describe('actions/IOU/Receipt', () => {
160160 await setupTransactionWithSnapshot ( transactionID , { receipt : { source : 'original.jpg' } } ) ;
161161
162162 // When replaceReceipt is called without a file
163- replaceReceipt ( { transactionID, file : undefined , source, transactionPolicy : undefined } ) ;
163+ replaceReceipt ( { transactionID, file : undefined , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
164164 await waitForBatchedUpdates ( ) ;
165165
166166 // Then the receipt source remains unchanged
@@ -173,7 +173,7 @@ describe('actions/IOU/Receipt', () => {
173173 await setupTransactionWithSnapshot ( transactionID , { receipt : { source : 'test1' } } ) ;
174174
175175 // When replaceReceipt is called with a new file
176- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
176+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
177177 await waitForBatchedUpdates ( ) ;
178178
179179 // Then both the transaction and its snapshot entry reflect the new receipt
@@ -191,7 +191,7 @@ describe('actions/IOU/Receipt', () => {
191191 await setupTransactionWithSnapshot ( transactionID , { receipt : { source : 'test1' , state : CONST . IOU . RECEIPT_STATE . SCAN_READY } } ) ;
192192
193193 // When replaceReceipt is called with the same state explicitly passed
194- replaceReceipt ( { transactionID, file : createFile ( ) , source, state : CONST . IOU . RECEIPT_STATE . SCAN_READY , transactionPolicy : undefined } ) ;
194+ replaceReceipt ( { transactionID, file : createFile ( ) , source, state : CONST . IOU . RECEIPT_STATE . SCAN_READY , transactionPolicy : undefined , policyTagList : undefined } ) ;
195195 await waitForBatchedUpdates ( ) ;
196196
197197 // Then the new receipt retains the provided state instead of falling back to OPEN
@@ -209,7 +209,7 @@ describe('actions/IOU/Receipt', () => {
209209 await setupTransactionWithSnapshot ( transactionID ) ;
210210
211211 // When replaceReceipt is called
212- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
212+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
213213 await waitForBatchedUpdates ( ) ;
214214
215215 // Then the receipt is created with the new source on both the transaction and snapshot
@@ -229,7 +229,7 @@ describe('actions/IOU/Receipt', () => {
229229
230230 try {
231231 // When replaceReceipt is called
232- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
232+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
233233 await waitForBatchedUpdates ( ) ;
234234
235235 // Then the optimisticData marks the receipt field as pending UPDATE
@@ -253,7 +253,7 @@ describe('actions/IOU/Receipt', () => {
253253
254254 try {
255255 // When replaceReceipt is called
256- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
256+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
257257 await waitForBatchedUpdates ( ) ;
258258
259259 // Then API.write is invoked with the REPLACE_RECEIPT command and the correct transactionID
@@ -291,7 +291,7 @@ describe('actions/IOU/Receipt', () => {
291291 await waitForBatchedUpdates ( ) ;
292292
293293 // When replaceReceipt is called with the paid group policy
294- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : policy } ) ;
294+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : policy , policyTagList : undefined } ) ;
295295 await waitForBatchedUpdates ( ) ;
296296
297297 // Then transaction violations are computed and stored
@@ -307,7 +307,7 @@ describe('actions/IOU/Receipt', () => {
307307
308308 try {
309309 // When replaceReceipt is called
310- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
310+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
311311 await waitForBatchedUpdates ( ) ;
312312
313313 // Then the failureData restores the original receipt, clears pendingFields, and attaches errors
@@ -332,7 +332,7 @@ describe('actions/IOU/Receipt', () => {
332332
333333 try {
334334 // When replaceReceipt is called
335- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
335+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
336336 await waitForBatchedUpdates ( ) ;
337337
338338 // Then the failureData sets receipt to null since there was nothing to restore
@@ -356,7 +356,7 @@ describe('actions/IOU/Receipt', () => {
356356
357357 try {
358358 // When replaceReceipt is called
359- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
359+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
360360 await waitForBatchedUpdates ( ) ;
361361
362362 // Then the successData clears the pending field for the receipt
@@ -378,7 +378,7 @@ describe('actions/IOU/Receipt', () => {
378378
379379 try {
380380 // When replaceReceipt is called
381- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
381+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
382382 await waitForBatchedUpdates ( ) ;
383383
384384 // Then no snapshot updates are included in either optimisticData or failureData
@@ -399,7 +399,7 @@ describe('actions/IOU/Receipt', () => {
399399
400400 try {
401401 // When replaceReceipt is called
402- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined } ) ;
402+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : undefined , policyTagList : undefined } ) ;
403403 await waitForBatchedUpdates ( ) ;
404404
405405 // Then the failureData restores the original receipt inside the snapshot entry
@@ -425,6 +425,7 @@ describe('actions/IOU/Receipt', () => {
425425 source,
426426 state : CONST . IOU . RECEIPT_STATE . SCAN_READY ,
427427 transactionPolicy : undefined ,
428+ policyTagList : undefined ,
428429 isSameReceipt : true ,
429430 } ) ;
430431 await waitForBatchedUpdates ( ) ;
@@ -475,7 +476,7 @@ describe('actions/IOU/Receipt', () => {
475476 // When replaceReceipt is called with the paid group policy
476477 const writeSpy = mockApiWrite ( ) ;
477478 try {
478- replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : policy } ) ;
479+ replaceReceipt ( { transactionID, file : createFile ( ) , source, transactionPolicy : policy , policyTagList : undefined } ) ;
479480 await waitForBatchedUpdates ( ) ;
480481
481482 // Then the failureData restores the original violations
0 commit comments