fix: Run lint:fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Родитель
cb2ddb1681
Коммит
e08bf4ce16
|
@ -284,8 +284,6 @@ describe('Floccus', function() {
|
|||
await account.delete()
|
||||
})
|
||||
it('should create local bookmarks on the server', async function() {
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
title: 'foo',
|
||||
|
@ -326,8 +324,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should create empty local folders on the server', async function() {
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
title: 'foo',
|
||||
|
@ -438,7 +434,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.noCache) {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -491,7 +486,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.noCache) {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -553,7 +547,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.noCache) {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -597,8 +590,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should update the server on local folder moves', async function() {
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
title: 'foo',
|
||||
|
@ -840,8 +831,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should not delete additions while sync is running', async function() {
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
title: 'foo',
|
||||
|
@ -897,8 +886,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should be able to handle duplicates', async function() {
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const bookmarkData = {
|
||||
title: 'url',
|
||||
|
@ -949,7 +936,6 @@ describe('Floccus', function() {
|
|||
})
|
||||
it('should deduplicate unnormalized URLs', async function() {
|
||||
const adapter = account.server
|
||||
|
||||
|
||||
// create bookmark on server
|
||||
const serverTree = await getAllBookmarks(account)
|
||||
|
@ -1027,7 +1013,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.type === 'nextcloud-bookmarks' && (APP_VERSION !== 'stable' && APP_VERSION !== 'master' && APP_VERSION !== 'stable3')) {
|
||||
this.skip()
|
||||
}
|
||||
|
||||
|
||||
// create bookmark locally
|
||||
const localRoot = account.getData().localRoot
|
||||
|
@ -1088,7 +1073,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.noCache) {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -1149,7 +1133,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.noCache) {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -1217,8 +1200,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should handle strange characters well', async function() {
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
title: 'foo!"§$%&/()=?"',
|
||||
|
@ -1268,7 +1249,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.noCache) {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -1307,7 +1287,6 @@ describe('Floccus', function() {
|
|||
return this.skip()
|
||||
}
|
||||
const adapter = account.server
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -1385,8 +1364,6 @@ describe('Floccus', function() {
|
|||
}
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: localRoot
|
||||
|
@ -1442,8 +1419,6 @@ describe('Floccus', function() {
|
|||
it('should move items successfully even into new folders', async function() {
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: localRoot
|
||||
|
@ -1526,8 +1501,6 @@ describe('Floccus', function() {
|
|||
it('should move items successfully when mixing creation and moving (1)', async function() {
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: localRoot
|
||||
|
@ -1633,8 +1606,6 @@ describe('Floccus', function() {
|
|||
it('should move items successfully when mixing creation and moving (2)', async function() {
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const aFolder = await browser.bookmarks.create({
|
||||
title: 'a',
|
||||
parentId: localRoot
|
||||
|
@ -1769,8 +1740,6 @@ describe('Floccus', function() {
|
|||
}
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const aFolder = await browser.bookmarks.create({
|
||||
title: 'a',
|
||||
parentId: localRoot
|
||||
|
@ -1845,7 +1814,6 @@ describe('Floccus', function() {
|
|||
const localRoot = account.getData().localRoot
|
||||
|
||||
const adapter = account.server
|
||||
|
||||
|
||||
const aFolder = await browser.bookmarks.create({
|
||||
title: 'a',
|
||||
|
@ -1961,8 +1929,6 @@ describe('Floccus', function() {
|
|||
this.skip()
|
||||
}
|
||||
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
title: 'foo',
|
||||
|
@ -2013,8 +1979,6 @@ describe('Floccus', function() {
|
|||
}
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: localRoot
|
||||
|
@ -2102,8 +2066,6 @@ describe('Floccus', function() {
|
|||
}
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: localRoot
|
||||
|
@ -2234,8 +2196,6 @@ describe('Floccus', function() {
|
|||
}
|
||||
const localRoot = account.getData().localRoot
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: localRoot
|
||||
|
@ -2336,8 +2296,6 @@ describe('Floccus', function() {
|
|||
await account.setData({...account.getData(), localRoot: root.id})
|
||||
account = await Account.get(account.id)
|
||||
|
||||
|
||||
|
||||
const barFolder = await browser.bookmarks.create({
|
||||
title: 'bar',
|
||||
parentId: root.children[0].id
|
||||
|
@ -2383,8 +2341,6 @@ describe('Floccus', function() {
|
|||
account = await Account.get(account.id)
|
||||
const adapter = account.server
|
||||
|
||||
|
||||
|
||||
let bookmark
|
||||
let serverTree = await getAllBookmarks(account)
|
||||
await withSyncConnection(account, async() => {
|
||||
|
@ -2444,7 +2400,6 @@ describe('Floccus', function() {
|
|||
if (ACCOUNT_DATA.type === 'linkwarden') {
|
||||
return this.skip()
|
||||
}
|
||||
|
||||
|
||||
const localRoot = account.getData().localRoot
|
||||
const fooFolder = await browser.bookmarks.create({
|
||||
|
@ -4795,8 +4750,6 @@ describe('Floccus', function() {
|
|||
await account.delete()
|
||||
})
|
||||
it('should create local tabs on the server', async function() {
|
||||
|
||||
|
||||
browser.tabs.create({
|
||||
index: 1,
|
||||
url: 'https://floccus.org/#test1'
|
||||
|
@ -4829,8 +4782,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should create server bookmarks as tabs', async function() {
|
||||
|
||||
|
||||
const adapter = account.server
|
||||
const serverTree = await getAllBookmarks(account)
|
||||
let windowFolderId, serverMark
|
||||
|
@ -4873,8 +4824,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should update the server when pushing local changes', async function() {
|
||||
|
||||
|
||||
await account.setData({...account.getData(), strategy: 'overwrite'})
|
||||
|
||||
browser.tabs.create({
|
||||
|
@ -4933,8 +4882,6 @@ describe('Floccus', function() {
|
|||
)
|
||||
})
|
||||
it('should update local tabs when pulling server changes', async function() {
|
||||
|
||||
|
||||
const adapter = account.server
|
||||
const serverTree = await getAllBookmarks(account)
|
||||
let windowFolderId, serverMark, serverMarkId
|
||||
|
|
Загрузка…
Ссылка в новой задаче