Skip to content

Commit e841832

Browse files
committed
Fix unit tests
1 parent c2706a1 commit e841832

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

src/legacy/core_plugins/kibana/public/dashboard/listing/__snapshots__/dashboard_listing.test.js.snap

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/legacy/core_plugins/kibana/public/dashboard/listing/dashboard_listing.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ jest.mock(
4242
{ virtual: true }
4343
);
4444

45+
jest.mock('ui/new_platform', () => {
46+
return {
47+
npStart: {
48+
core: {
49+
notifications: { toasts: { } },
50+
uiSettings: { get: jest.fn(() => 10) },
51+
},
52+
},
53+
};
54+
});
55+
4556
import React from 'react';
4657
import { shallow } from 'enzyme';
4758

0 commit comments

Comments
 (0)