Skip to content

Commit

Permalink
feat: added deepFreeze to not pollute global mock data - Part 11 (#2927)
Browse files Browse the repository at this point in the history
* 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
suyashpatil78 authored May 4, 2024
1 parent c6fed22 commit 1e5e490
Show file tree
Hide file tree
Showing 106 changed files with 1,702 additions and 1,437 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import deepFreeze from 'deep-freeze-strict';

import { cloneDeep } from 'lodash';
import { CustomFieldTypes } from 'src/app/core/enums/platform/v1/custom-fields-type.enum';
import { AdvanceRequestState } from 'src/app/core/models/advance-request-state.model';
import { AdvanceRequestPlatform } from 'src/app/core/models/platform/advance-request-platform.model';
import { PlatformApiResponse } from 'src/app/core/models/platform/platform-api-response.model';

export const advanceRequestPlatform: PlatformApiResponse<AdvanceRequestPlatform> = {
export const advanceRequestPlatform: PlatformApiResponse<AdvanceRequestPlatform> = deepFreeze({
count: 1,
offset: 0,
data: [
Expand Down Expand Up @@ -87,9 +88,9 @@ export const advanceRequestPlatform: PlatformApiResponse<AdvanceRequestPlatform>
],
},
],
};
});

export const advanceRequestPlatformPulledBack: PlatformApiResponse<AdvanceRequestPlatform> = {
export const advanceRequestPlatformPulledBack: PlatformApiResponse<AdvanceRequestPlatform> = deepFreeze({
count: 1,
offset: 0,
data: [
Expand All @@ -99,9 +100,9 @@ export const advanceRequestPlatformPulledBack: PlatformApiResponse<AdvanceReques
id: 'areqiwr3Wwirl',
},
],
};
});

export const advanceRequestPlatformSentBack: PlatformApiResponse<AdvanceRequestPlatform> = {
export const advanceRequestPlatformSentBack: PlatformApiResponse<AdvanceRequestPlatform> = deepFreeze({
count: 1,
offset: 0,
data: [
Expand All @@ -111,4 +112,4 @@ export const advanceRequestPlatformSentBack: PlatformApiResponse<AdvanceRequestP
state: 'SENT_BACK',
},
],
};
});
18 changes: 10 additions & 8 deletions src/app/core/mock-data/platform/v1/expense-duplicate-sets.data.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import deepFreeze from 'deep-freeze-strict';

import { ExpenseDuplicateSet } from 'src/app/core/models/platform/v1/expense-duplicate-sets.model';

export const expenseDuplicateSet: ExpenseDuplicateSet = {
export const expenseDuplicateSet: ExpenseDuplicateSet = deepFreeze({
expense_ids: ['tx5fBcPBAxLv', 'tx3nHShG60zq'],
};
});

export const expenseDuplicateSet2: ExpenseDuplicateSet = {
export const expenseDuplicateSet2: ExpenseDuplicateSet = deepFreeze({
expense_ids: ['tx5fBcPBAxLv'],
};
});

export const expenseDuplicateSet3: ExpenseDuplicateSet = {
export const expenseDuplicateSet3: ExpenseDuplicateSet = deepFreeze({
expense_ids: ['txal5xGjbZ1R'],
};
});

export const expenseDuplicateSets: ExpenseDuplicateSet[] = [
export const expenseDuplicateSets: ExpenseDuplicateSet[] = deepFreeze([
{ expense_ids: ['tx3I0ccSGlhg', 'txvAmVCGZUZi'] },
{ expense_ids: ['tx3rq5G9gzgf', 'txS1cDov9iZn'] },
{ expense_ids: ['tx6KauIKfjdJ', 'txT0ZmCrVOiD'] },
Expand All @@ -30,4 +32,4 @@ export const expenseDuplicateSets: ExpenseDuplicateSet[] = [
{ expense_ids: ['txjh5iDt7xXO', 'txkJsHIF6a9X'] },
{ expense_ids: ['txT0ZmCrVOiD', 'txws78AoalC9'] },
{ expense_ids: ['txT0ZmCrVOiD', 'txzjWIcqYxa9'] },
];
]);
Loading

0 comments on commit 1e5e490

Please sign in to comment.