-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added deepFreeze to not pollute global mock data - Part 3 (#2915)
* feat: added deepFreeze to not pollute global mock data - Part 3 * feat: added deepFreeze to not pollute global mock data - Part 4 (#2916) * feat: added deepFreeze to not pollute global mock data - Part 4 * feat: added deepFreeze to not pollute global mock data - Part 5 (#2917) * feat: added deepFreeze to not pollute global mock data - Part 5 * feat: added deepFreeze to not pollute global mock data - Part 6 (#2918) * feat: added deepFreeze to not pollute global mock data - Part 6 * feat: added deepFreeze to not pollute global mock data - Part 7 (#2919) * feat: added deepFreeze to not pollute global mock data - Part 7 * minor * feat: added deepFreeze to not pollute global mock data - Part 8 (#2922) * feat: added deepFreeze to not pollute global mock data - Part 8 * feat: added deepFreeze to not pollute global mock data - Part 9 (#2924) * feat: added deepFreeze to not pollute global mock data - Part 9 * feat: added deepFreeze to not pollute global mock data - Part 10 (#2925) * feat: added deepFreeze to not pollute global mock data - Part 10 * feat: added deepFreeze to not pollute global mock data - Part 11 (#2927) * feat: added deepFreeze to not pollute global mock data - Part 11 * feat: added deepFreeze to not pollute global mock data - Part 12 (#2929) * feat: added deepFreeze to not pollute global mock data - Part 12 * feat: added deepFreeze to not pollute global mock data - Part 13 (#2930) * feat: added deepFreeze to not pollute global mock data - Part 13 * minor * feat: added deepFreeze to not pollute global mock data - Part 14 (#2933) * feat: added deepFreeze to not pollute global mock data - Part 14 * feat: added deepFreeze to not pollute global mock data - Part 15 (#2934) * feat: added deepFreeze to not pollute global mock data - Part 15 * test: fixing tests - part 1 (#2939) * test: fixing tests - part 1 * test: fixing tests - part 2 (#2940) * test: fixing tests - part 2 * test: fixing tests - part 3 (#2941) * test: fixing tests - part 3 * test: fixing tests - part 4 (#2943) * test: fixing tests - part 4 * test: fixing tests - part 5 (#2945) * minor
- Loading branch information
1 parent
2413424
commit 1b0e8a5
Showing
211 changed files
with
3,272 additions
and
2,792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import deepFreeze from 'deep-freeze-strict'; | ||
|
||
import { FlattenedAccount } from '../models/flattened-account.model'; | ||
|
||
export const dataErtpTransformed = { | ||
export const dataErtpTransformed = deepFreeze({ | ||
'': { | ||
search_document: | ||
"'46040':4 'a':8,14,20,26 'abhishek':32 '[email protected]':34 'business':11,17,23,29 'c/2022/10/r/37':5 'director':6 'indeed':13,19,25,31 'inr':3 'jain':33 'long':10,16,22,28 'mumbai':7 'report':2 'testing':1 'unit':12,18,24,30 'very':9,15,21,27", | ||
|
@@ -64,9 +66,9 @@ export const dataErtpTransformed = { | |
email: '[email protected]', | ||
full_name: 'Abhishek Jain', | ||
}, | ||
}; | ||
}); | ||
|
||
export const apiErptReporDataParam = { | ||
export const apiErptReporDataParam = deepFreeze({ | ||
'': { | ||
search_document: | ||
"'46040':4 'a':8,14,20,26 'abhishek':32 '[email protected]':34 'business':11,17,23,29 'c/2022/10/r/37':5 'director':6 'indeed':13,19,25,31 'inr':3 'jain':33 'long':10,16,22,28 'mumbai':7 'report':2 'testing':1 'unit':12,18,24,30 'very':9,15,21,27", | ||
|
@@ -130,9 +132,9 @@ export const apiErptReporDataParam = { | |
email: '[email protected]', | ||
full_name: 'Abhishek Jain', | ||
}, | ||
}; | ||
}); | ||
|
||
export const flattenedData: FlattenedAccount = { | ||
export const flattenedData: FlattenedAccount = deepFreeze({ | ||
acc_id: 'acct0vTdfNQrT', | ||
acc_created_at: '2019-09-19T10:19:37.764Z', | ||
acc_updated_at: '2023-03-10T11:29:40.049Z', | ||
|
@@ -156,9 +158,9 @@ export const flattenedData: FlattenedAccount = { | |
orig_amount: 2500, | ||
amount: 2500, | ||
advance_id: 'aDvId123', | ||
}; | ||
}); | ||
|
||
export const unflattenedData = { | ||
export const unflattenedData = deepFreeze({ | ||
acc: { | ||
id: 'acct0vTdfNQrT', | ||
created_at: '2019-09-19T10:19:37.764Z', | ||
|
@@ -196,4 +198,4 @@ export const unflattenedData = { | |
}, | ||
currency: 'INR', | ||
amount: 2500, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
import deepFreeze from 'deep-freeze-strict'; | ||
|
||
import { DefaultTxnFieldValues } from '../models/v1/default-txn-field-values.model'; | ||
|
||
export const defaultTxnFieldValuesData: Partial<DefaultTxnFieldValues> = { | ||
export const defaultTxnFieldValuesData: Partial<DefaultTxnFieldValues> = deepFreeze({ | ||
purpose: 'test_term', | ||
tax_group_id: 'GST', | ||
}; | ||
}); | ||
|
||
export const defaultTxnFieldValuesData2_1: Partial<DefaultTxnFieldValues> = { | ||
export const defaultTxnFieldValuesData2_1: Partial<DefaultTxnFieldValues> = deepFreeze({ | ||
purpose: 'test_term', | ||
tax_group_id: 'GST', | ||
flight_journey_travel_class: { | ||
options: ['BUSINESS'], | ||
}, | ||
}; | ||
}); | ||
|
||
export const defaultTxnFieldValuesData3: Partial<DefaultTxnFieldValues> = { | ||
export const defaultTxnFieldValuesData3: Partial<DefaultTxnFieldValues> = deepFreeze({ | ||
purpose: 'test_term', | ||
tax_group_id: 'GST', | ||
vendor_id: 'vendor', | ||
billable: true, | ||
}; | ||
}); | ||
|
||
export const defaultTxnFieldValuesData2: Partial<DefaultTxnFieldValues> = { | ||
export const defaultTxnFieldValuesData2: Partial<DefaultTxnFieldValues> = deepFreeze({ | ||
purpose: 'test_term', | ||
cost_center_id: 15818, | ||
from_dt: '2023-01-01', | ||
to_dt: '2023-02-02', | ||
num_days: 32, | ||
billable: true, | ||
}; | ||
}); | ||
|
||
export const defaultTxnFieldValuesData4: Partial<DefaultTxnFieldValues> = { | ||
export const defaultTxnFieldValuesData4: Partial<DefaultTxnFieldValues> = deepFreeze({ | ||
purpose: 'test_term', | ||
cost_center_id: 15818, | ||
billable: true, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export const directionsResponse1: string = | ||
import deepFreeze from 'deep-freeze-strict'; | ||
|
||
export const directionsResponse1 = | ||
'oygtBwpx}La@LMHGPB`@AXNl@BXC\\Wd@k@Y[QEIKg@WwCKYt@Wr@Qb@Ip@]v@_@h@SIWOe@XONK@GE_@Uq@MOM@'; | ||
|
||
export const directionsResponse2 = { | ||
export const directionsResponse2 = deepFreeze({ | ||
message: 'No route found', | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
import deepFreeze from 'deep-freeze-strict'; | ||
|
||
import { DuplicateSet } from '../models/v2/duplicate-sets.model'; | ||
|
||
export const duplicateSetData1: DuplicateSet = { | ||
export const duplicateSetData1: DuplicateSet = deepFreeze({ | ||
fields: ['field1', 'field2'], | ||
transaction_ids: ['tx5fBcPBAxLv'], | ||
}; | ||
}); | ||
|
||
export const duplicateSetData2: DuplicateSet = { | ||
export const duplicateSetData2: DuplicateSet = deepFreeze({ | ||
fields: ['field1', 'field2'], | ||
transaction_ids: ['tx5fBcPBAxLv', 'tx3nHShG60zq'], | ||
}; | ||
}); | ||
|
||
export const duplicateSetData3: DuplicateSet = { | ||
export const duplicateSetData3: DuplicateSet = deepFreeze({ | ||
fields: ['field1', 'field2'], | ||
transaction_ids: ['txcSFe6efB6R', 'txDDLtRaflUW'], | ||
}; | ||
}); | ||
|
||
export const duplicateSetData4: DuplicateSet = { | ||
export const duplicateSetData4: DuplicateSet = deepFreeze({ | ||
transaction_ids: ['tx5fBcPBAxLv'], | ||
}; | ||
}); | ||
|
||
export const duplicateSetData5: DuplicateSet = { | ||
export const duplicateSetData5: DuplicateSet = deepFreeze({ | ||
fields: ['field1', 'field2'], | ||
transaction_ids: ['txal5xGjbZ1R'], | ||
}; | ||
}); | ||
|
||
export const duplicateSetData6: DuplicateSet = { | ||
export const duplicateSetData6: DuplicateSet = deepFreeze({ | ||
transaction_ids: ['txal5xGjbZ1R'], | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.