Skip to content

Commit c6e5098

Browse files
committed
Adjust test
1 parent 42a84ae commit c6e5098

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/test/bookmark-manager.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ describe('BookmarkManager', () => {
6666
it('should not leak bookmarks from bookmarks supplier to the internal state', async () => {
6767
const extraBookmarks = ['neo4j:bmextra', 'system:bmextra', 'adb:bmextra']
6868
const bookmarksSupplier = jest.fn()
69-
bookmarksSupplier.mockReturnValueOnce(Promise.resolve(extraBookmarks)).mockReturnValue(Promise.resolve([]))
69+
bookmarksSupplier
70+
.mockReturnValueOnce(Promise.resolve(extraBookmarks))
71+
.mockReturnValue(Promise.resolve([]))
7072
const manager = bookmarkManager({
7173
initialBookmarks: [...neo4jBookmarks, ...systemBookmarks],
7274
bookmarksSupplier
@@ -80,7 +82,7 @@ describe('BookmarkManager', () => {
8082

8183
const internalBookmarks = await manager.getBookmarks()
8284

83-
expect(bookmarksWithExtraBookmarks).toBeSortedEqual(
85+
expect(internalBookmarks).toBeSortedEqual(
8486
[...neo4jBookmarks, ...systemBookmarks]
8587
)
8688
})

0 commit comments

Comments
 (0)