-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DUGK-36 Added mocks for layout to missing tests #29
DUGK-36 Added mocks for layout to missing tests #29
Conversation
client/test/Dashboard.test.tsx
Outdated
@@ -8,6 +8,11 @@ jest.mock('route/history/Chart', () => ({ | |||
jest.mock('route/history/RecentRuns', () => ({ | |||
default: () => <div>recent-runs-mock</div>, | |||
})); | |||
jest.mock('page/Layout', () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 3 locations. Consider refactoring.
@@ -6,6 +6,12 @@ jest.mock('components/Iframe', () => ({ | |||
default: () => <div>iframe-mock</div>, | |||
})); | |||
|
|||
jest.mock('page/Layout', () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 3 locations. Consider refactoring.
client/test/DigitalTwins.test.tsx
Outdated
@@ -5,6 +5,11 @@ import DigitalTwins from '../src/route/digitaltwins/DigitalTwins'; | |||
jest.mock('route/digitaltwins/Workflows', () => ({ | |||
default: () => <div>workflows-mock</div>, | |||
})); | |||
jest.mock('page/Layout', () => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 3 locations. Consider refactoring.
00e57b8
to
d9acfed
Compare
Code Climate has analyzed commit d9acfed and detected 0 issues on this pull request. View more on Code Climate. |
Now tests be working