Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Commit 4dd2fe8

Browse files
aquibbaiggurbirkalsi
authored andcommitted
modify unit tests to include username prop
1 parent 9d60612 commit 4dd2fe8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/pages/Controllers/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import AntdDatePicker from '@/components/DatePicker';
1010
const mockProps = {
1111
controllers: [],
1212
indices: [],
13+
auth: { username: '' },
1314
};
1415

1516
const mockDispatch = jest.fn();

src/pages/Results/index.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Results from './index';
88

99
const mockProps = {
1010
selectedControllers: ['controller1'],
11+
auth: { username: '' },
1112
};
1213

1314
const mockDispatch = jest.fn();

0 commit comments

Comments
 (0)