-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix newsfeed unread notifications always on when reloading Kibana (#1…
…00357) (#101163) * fix the implementation * add unit tests * add API unit tests * fix public interface * address review comments * name convertItem to localizeItem * use fetch instead of core.http and add tests
- Loading branch information
1 parent
654e46c
commit 0c57d8d
Showing
15 changed files
with
936 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { storageMock } from './storage.mock'; | ||
import { driverMock } from './driver.mock'; | ||
|
||
export const storageInstanceMock = storageMock.create(); | ||
jest.doMock('./storage', () => ({ | ||
NewsfeedStorage: jest.fn().mockImplementation(() => storageInstanceMock), | ||
})); | ||
|
||
export const driverInstanceMock = driverMock.create(); | ||
jest.doMock('./driver', () => ({ | ||
NewsfeedApiDriver: jest.fn().mockImplementation(() => driverInstanceMock), | ||
})); |
Oops, something went wrong.