diff --git a/src/components/Map/Drawer/BioEntityDrawer/OverlayData/OverlayAxis/OverlayAxis.component.test.tsx b/src/components/Map/Drawer/BioEntityDrawer/OverlayData/OverlayAxis/OverlayAxis.component.test.tsx index aedf8fe0e5e7805c5c583c08163582ce90cd70f1..3e84f487d877befae4411f376385d063ea89be8f 100644 --- a/src/components/Map/Drawer/BioEntityDrawer/OverlayData/OverlayAxis/OverlayAxis.component.test.tsx +++ b/src/components/Map/Drawer/BioEntityDrawer/OverlayData/OverlayAxis/OverlayAxis.component.test.tsx @@ -56,7 +56,7 @@ describe('OverlayAxis - component', () => { expect(bar).toBeInTheDocument(); expect(bar?.getAttribute('class')).toContain('rounded-r'); expect(bar?.getAttribute('class')).toContain('left-1/2'); - expect(bar?.getAttribute('style')).toContain('width: 0.028211717200000003%;'); + expect(bar?.getAttribute('style')).toContain('width: 28.211717200000003%;'); expect(bar?.getAttribute('style')).toContain('background: rgb(255, 0, 0);'); }); @@ -82,7 +82,7 @@ describe('OverlayAxis - component', () => { expect(bar).toBeInTheDocument(); expect(bar?.getAttribute('class')).toContain('rounded-l'); expect(bar?.getAttribute('class')).toContain('right-1/2'); - expect(bar?.getAttribute('style')).toContain('width: 0.016276616115%;'); + expect(bar?.getAttribute('style')).toContain('width: 16.276616115%;'); expect(bar?.getAttribute('style')).toContain('background: rgb(0, 255, 0);'); }); diff --git a/src/constants/common.ts b/src/constants/common.ts index cc1c5e08d0bda289dc7d1ba800b62cdeba4c2e28..5f3261398871bc194e0bef40a79a5bbcdbb91a1a 100644 --- a/src/constants/common.ts +++ b/src/constants/common.ts @@ -15,4 +15,4 @@ export const THIRD_ARRAY_ELEMENT = 2; export const NOOP = (): void => {}; export const ONE_DECIMAL = 0.1; -export const ONE_HUNDRED = 0.1; +export const ONE_HUNDRED = 100;