File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ describe('BookmarkManager', () => {
66
66
it ( 'should not leak bookmarks from bookmarks supplier to the internal state' , async ( ) => {
67
67
const extraBookmarks = [ 'neo4j:bmextra' , 'system:bmextra' , 'adb:bmextra' ]
68
68
const bookmarksSupplier = jest . fn ( )
69
- bookmarksSupplier . mockReturnValueOnce ( Promise . resolve ( extraBookmarks ) ) . mockReturnValue ( Promise . resolve ( [ ] ) )
69
+ bookmarksSupplier
70
+ . mockReturnValueOnce ( Promise . resolve ( extraBookmarks ) )
71
+ . mockReturnValue ( Promise . resolve ( [ ] ) )
70
72
const manager = bookmarkManager ( {
71
73
initialBookmarks : [ ...neo4jBookmarks , ...systemBookmarks ] ,
72
74
bookmarksSupplier
@@ -80,7 +82,7 @@ describe('BookmarkManager', () => {
80
82
81
83
const internalBookmarks = await manager . getBookmarks ( )
82
84
83
- expect ( bookmarksWithExtraBookmarks ) . toBeSortedEqual (
85
+ expect ( internalBookmarks ) . toBeSortedEqual (
84
86
[ ...neo4jBookmarks , ...systemBookmarks ]
85
87
)
86
88
} )
You can’t perform that action at this time.
0 commit comments