Skip to content

Commit 7af309b

Browse files
committed
tests: Don't pass anonymous object into Adapter#updateBookmark
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 55c8a56 commit 7af309b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ describe('Floccus', function() {
26742674

26752675
await withSyncConnection(account, async() => {
26762676
// move first separator
2677-
await account.server.updateBookmark({...tree.children[0].children[0].children[1], parentId: tree.children[0].id})
2677+
await account.server.updateBookmark(new Bookmark({...tree.children[0].children[0].children[1], parentId: tree.children[0].id}))
26782678
})
26792679

26802680
console.log('move done')
@@ -5768,7 +5768,7 @@ describe('Floccus', function() {
57685768
new Bookmark(serverMark2)
57695769
)
57705770

5771-
await adapter.updateBookmark({ ...serverMark, id: serverMarkId, url: TEST_URL + '#test2', title: TEST_URL_TITLE, parentId: tree.children[0].id })
5771+
await adapter.updateBookmark(new Bookmark({ ...serverMark, id: serverMarkId, url: TEST_URL + '#test2', title: TEST_URL_TITLE, parentId: tree.children[0].id }))
57725772
})
57735773

57745774
await account.setData({ strategy: 'slave'})
@@ -5855,7 +5855,7 @@ describe('Floccus', function() {
58555855
new Bookmark(serverMark2)
58565856
)
58575857

5858-
await adapter.updateBookmark({ ...serverMark, id: serverMarkId, url: TEST_URL + '#test2', title: TEST_URL_TITLE, parentId: tree.children[0].id })
5858+
await adapter.updateBookmark(new Bookmark({ ...serverMark, id: serverMarkId, url: TEST_URL + '#test2', title: TEST_URL_TITLE, parentId: tree.children[0].id }))
58595859
})
58605860

58615861
await browser.tabs.create({url: TEST_URL + '#test4'})
@@ -6853,10 +6853,10 @@ describe('Floccus', function() {
68536853

68546854
// Move the bookmarks out of the group
68556855
for (const bookmark of tabGroupFolder.children) {
6856-
await account.server.updateBookmark({
6856+
await account.server.updateBookmark(new Bookmark({
68576857
...bookmark,
68586858
parentId: windowFolder.id
6859-
})
6859+
}))
68606860
}
68616861

68626862
// Remove the now-empty group folder

0 commit comments

Comments
 (0)