Skip to content

Commit

Permalink
feat: added deepFreeze to not pollute global mock data - Part 8 (#2922)
Browse files Browse the repository at this point in the history
* 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
suyashpatil78 authored May 4, 2024
1 parent 6a6acdb commit f59a040
Show file tree
Hide file tree
Showing 145 changed files with 2,315 additions and 1,969 deletions.
6 changes: 4 additions & 2 deletions src/app/core/mock-data/option.data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import deepFreeze from 'deep-freeze-strict';

import { Option } from '../models/option.model';

export const optionData1: Option[] = [
export const optionData1: Option[] = deepFreeze([
{
label: 'report 1',
value: {
Expand Down Expand Up @@ -132,4 +134,4 @@ export const optionData1: Option[] = [
user_id: 'usvKA4X8Ugcr',
},
},
];
]);
14 changes: 8 additions & 6 deletions src/app/core/mock-data/org-category-list-item.data.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import deepFreeze from 'deep-freeze-strict';

import { OrgCategoryListItem } from '../models/v1/org-category.model';
import { expectedOrgCategoriesPaginated } from './org-category.data';

export const categorieListRes: OrgCategoryListItem[] = [
export const categorieListRes: OrgCategoryListItem[] = deepFreeze([
{
label: 'Accounts Payable - Employees',
value: expectedOrgCategoriesPaginated[0],
Expand All @@ -18,9 +20,9 @@ export const categorieListRes: OrgCategoryListItem[] = [
label: 'samp category',
value: expectedOrgCategoriesPaginated[3],
},
];
]);

export const recentUsedCategoriesRes: OrgCategoryListItem[] = [
export const recentUsedCategoriesRes: OrgCategoryListItem[] = deepFreeze([
{
label: 'Office Supplies',
value: {
Expand Down Expand Up @@ -66,9 +68,9 @@ export const recentUsedCategoriesRes: OrgCategoryListItem[] = [
updated_at: new Date('2022-11-23T13:11:51.771676+00:00'),
},
},
];
]);

export const orgCategoryListItemData1 = [
export const orgCategoryListItemData1 = deepFreeze([
{
label: 'Business',
value: {
Expand Down Expand Up @@ -129,4 +131,4 @@ export const orgCategoryListItemData1 = [
updated_at: new Date('2023-01-09T16:54:09.929Z'),
},
},
];
]);
Loading

0 comments on commit f59a040

Please sign in to comment.