Skip to content

Commit

Permalink
test: Change title of duplicate URLs
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Sep 22, 2024
1 parent 6677d7f commit 3869d4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ describe('Floccus', function() {
expect(account.getData().error).to.not.be.ok

const newData = { title: 'blah' }
await browser.bookmarks.update(bookmark1.id, newData)
await browser.bookmarks.update(bookmark2.id, newData)
await account.sync() // update on server
expect(account.getData().error).to.not.be.ok

Expand All @@ -541,10 +541,6 @@ describe('Floccus', function() {
new Folder({
title: 'foo',
children: [
new Bookmark({
title: ACCOUNT_DATA.type === 'nextcloud-bookmarks' ? newData.title : bookmark2.title,
url: bookmark1.url
}),
new Folder({
title: 'bar',
children: [
Expand All @@ -553,7 +549,11 @@ describe('Floccus', function() {
url: bookmark1.url
})
]
})
}),
new Bookmark({
title: ACCOUNT_DATA.type === 'nextcloud-bookmarks' ? newData.title : bookmark2.title,
url: bookmark1.url
}),
]
})
]
Expand Down

0 comments on commit 3869d4d

Please sign in to comment.