From 36407f36c8da354d98b003fbf6ee74fb21355db8 Mon Sep 17 00:00:00 2001 From: Jaskaran Sarkaria Date: Sun, 30 Jan 2022 16:58:29 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20remove=20IsWet=20for?= =?UTF-8?q?=20NominalCode:=20'NOT=5FWEB'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .routify/config.js | 2 +- .routify/routes.js | 4 ++-- public/index.html | 4 ++-- src/components/CategoryView/CategoryView.test.ts | 16 +++++----------- src/components/HexGrid/HexGrid.svelte | 2 +- src/components/HexGrid/HexGrid.test.ts | 5 ++--- .../RootCategories/RootCategories.test.ts | 6 +++--- src/components/TagView/TagView.test.ts | 1 - src/stores/categories.ts | 1 - src/types/category.d.ts | 1 - src/types/isCategory.ts | 5 +---- 11 files changed, 17 insertions(+), 30 deletions(-) diff --git a/.routify/config.js b/.routify/config.js index a44e80a7..fa589b16 100644 --- a/.routify/config.js +++ b/.routify/config.js @@ -8,5 +8,5 @@ module.exports = { noHashScroll: false, distDir: 'dist', extensions: ['svelte', 'html', 'svx', 'md'], - started: '2022-01-29T16:17:06.229Z', + started: '2022-01-30T16:53:13.676Z', }; diff --git a/.routify/routes.js b/.routify/routes.js index 26aecf42..243195d7 100644 --- a/.routify/routes.js +++ b/.routify/routes.js @@ -1,10 +1,10 @@ /** * @roxi/routify 2.7.3 - * File generated Sat Jan 29 2022 16:17:08 GMT+0000 (Greenwich Mean Time) + * File generated Sun Jan 30 2022 16:53:16 GMT+0000 (Greenwich Mean Time) */ export const __version = '2.7.3'; -export const __timestamp = '2022-01-29T16:17:08.822Z'; +export const __timestamp = '2022-01-30T16:53:16.650Z'; //buildRoutes import { buildClientTree } from '@roxi/routify/runtime/buildRoutes'; diff --git a/public/index.html b/public/index.html index 8f617a90..03407b42 100644 --- a/public/index.html +++ b/public/index.html @@ -9,9 +9,9 @@ - + - + diff --git a/src/components/CategoryView/CategoryView.test.ts b/src/components/CategoryView/CategoryView.test.ts index 9ba23ba2..987e2437 100644 --- a/src/components/CategoryView/CategoryView.test.ts +++ b/src/components/CategoryView/CategoryView.test.ts @@ -14,28 +14,28 @@ const nestedCategories = { ParentId: null, Name: '', NominalCode: 'TRUE', - IsWet: false, + Children: [ { Id: 123, ParentId: null, Name: 'Clothes', NominalCode: 'TRUE', - IsWet: false, + Children: [ { Id: 456, ParentId: null, Name: 'Shoes', NominalCode: 'TRUE', - IsWet: false, + Children: [ { Id: 789, ParentId: null, Name: 'Hats', NominalCode: 'TRUE', - IsWet: false, + Children: [], }, ], @@ -68,7 +68,6 @@ describe('GIVEN CategoryView', () => { Name: '', Children: [], NominalCode: '', - IsWet: false, }); }); }); @@ -81,7 +80,6 @@ describe('GIVEN CategoryView', () => { Name: 'Clothes', Children: [], NominalCode: 'TRUE', - IsWet: false, }); render(CategoryView, { @@ -95,7 +93,6 @@ describe('GIVEN CategoryView', () => { Name: 'Clothes', Children: [], NominalCode: 'TRUE', - IsWet: false, }); expect(refreshCategory).toHaveBeenCalledTimes(0); expect(screen.getByRole('heading')).toHaveTextContent('123'); @@ -110,7 +107,6 @@ describe('GIVEN CategoryView', () => { Name: 'Shoes', Children: [], NominalCode: 'TRUE', - IsWet: false, }, ]); @@ -125,7 +121,6 @@ describe('GIVEN CategoryView', () => { Name: '', Children: [], NominalCode: '', - IsWet: false, }); expect(refreshCategory).toHaveBeenCalledTimes(1); await tick(); // using tick helps to flush any state changes in the component @@ -137,7 +132,6 @@ describe('GIVEN CategoryView', () => { ParentId: null, Children: [], NominalCode: 'TRUE', - IsWet: false, }); expect(screen.getByRole('heading')).toHaveTextContent('456'); cleanup(); @@ -177,7 +171,7 @@ describe('GIVEN CategoryView', () => { Name: 'Variant', ParentId: null, Children: [], - IsWet: false, + NominalCode: '', }); diff --git a/src/components/HexGrid/HexGrid.svelte b/src/components/HexGrid/HexGrid.svelte index b41512d0..b21c210e 100644 --- a/src/components/HexGrid/HexGrid.svelte +++ b/src/components/HexGrid/HexGrid.svelte @@ -29,7 +29,7 @@