Skip to content

Commit 1b0ae6a

Browse files
Change test labeling
1 parent b903f08 commit 1b0ae6a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/react/Routes.test.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useIsVeeamVBROnly } from './ISV/hooks/useIsVeeamVBROnly';
44
import InternalRoutes, { PrivateRoutes } from './Routes';
55
import { renderWithRouterMatch } from './utils/testUtil';
66

7-
// Mock the hooks
7+
// Mock useIsVeeamVBROnly as it comes from ShellHooks
88
jest.mock('./ISV/hooks/useIsVeeamVBROnly');
99
jest.mock('react-redux', () => ({
1010
...jest.requireActual('react-redux'),
@@ -92,7 +92,7 @@ describe('Routes component', () => {
9292
});
9393
});
9494

95-
it('should render the create-dataservice route when isArtescaPlusVeeamEnabled is false', async () => {
95+
it('should render the Create Data Service page in standard configuration', async () => {
9696
// Mock the hook to return false
9797
mockUseIsVeeamVBROnly.mockReturnValue(false);
9898

@@ -107,7 +107,7 @@ describe('Routes component', () => {
107107
});
108108
});
109109

110-
it('should not render the create-dataservice route when isArtescaPlusVeeamEnabled is true', async () => {
110+
it('should not render the Create Data Service page in ARTESCA+VEEAM configuration', async () => {
111111
// Mock the hook to return true
112112
mockUseIsVeeamVBROnly.mockReturnValue(true);
113113

@@ -124,7 +124,7 @@ describe('Routes component', () => {
124124
});
125125
});
126126

127-
it('should render the dataservices route when isArtescaPlusVeeamEnabled is false', async () => {
127+
it('should render the Data Services page in standard configuration', async () => {
128128
// Mock the hook to return false
129129
mockUseIsVeeamVBROnly.mockReturnValue(false);
130130

@@ -139,7 +139,7 @@ describe('Routes component', () => {
139139
});
140140
});
141141

142-
it('should not render the dataservices route when isArtescaPlusVeeamEnabled is true', async () => {
142+
it('should not render the Data Services page in ARTESCA+VEEAM configuration', async () => {
143143
// Mock the hook to return true
144144
mockUseIsVeeamVBROnly.mockReturnValue(true);
145145

@@ -153,7 +153,7 @@ describe('Routes component', () => {
153153
expect(selectors.loadingDataServices()).not.toBeInTheDocument();
154154
});
155155
});
156-
it('should redirect incorrect routes to /accounts', async () => {
156+
it('should redirect incorrect routes to Accounts page', async () => {
157157
renderWithRouterMatch(<PrivateRoutes />, {
158158
path: '/*',
159159
route: '/incorrect-route',
@@ -165,7 +165,7 @@ describe('Routes component', () => {
165165
});
166166

167167
describe('sidebar entries', () => {
168-
it('should hide dataservices from sidebar when isArtescaPlusVeeamEnabled is true', async () => {
168+
it('should hide Data Services from sidebar in ARTESCA+VEEAM configuration', async () => {
169169
// Mock the hook to return true
170170
mockUseIsVeeamVBROnly.mockReturnValue(true);
171171

@@ -181,7 +181,7 @@ describe('Routes component', () => {
181181
});
182182
});
183183

184-
it('should show dataservices in sidebar when isArtescaPlusVeeamEnabled is false', async () => {
184+
it('should show Data Services in sidebar in standard configuration', async () => {
185185
// Mock the hook to return false
186186
mockUseIsVeeamVBROnly.mockReturnValue(false);
187187

0 commit comments

Comments
 (0)