You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Tools: Add prefer-arrow-callbacks to ESlint rules (#7810)
This commit is contained in:
@ -41,7 +41,7 @@ function newFakeApiCall(callRecorder: ApiCall[], itemBodyCallback: Function = nu
|
||||
return apiCall;
|
||||
}
|
||||
|
||||
describe('synchronizer/ItemUploader', function() {
|
||||
describe('synchronizer/ItemUploader', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -6,7 +6,7 @@ import Note from '../../models/Note';
|
||||
import BaseItem from '../../models/BaseItem';
|
||||
const WelcomeUtils = require('../../WelcomeUtils');
|
||||
|
||||
describe('Synchronizer.basics', function() {
|
||||
describe('Synchronizer.basics', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -6,7 +6,7 @@ import Note from '../../models/Note';
|
||||
import BaseItem from '../../models/BaseItem';
|
||||
import { setEncryptionEnabled } from '../synchronizer/syncInfoUtils';
|
||||
|
||||
describe('Synchronizer.conflicts', function() {
|
||||
describe('Synchronizer.conflicts', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -18,7 +18,7 @@ function newResourceFetcher(synchronizer: Synchronizer) {
|
||||
return new ResourceFetcher(() => { return synchronizer.api(); });
|
||||
}
|
||||
|
||||
describe('Synchronizer.e2ee', function() {
|
||||
describe('Synchronizer.e2ee', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
insideBeforeEach = true;
|
||||
|
@ -4,7 +4,7 @@ import { fetchSyncInfo, localSyncInfo, setEncryptionEnabled } from '../synchroni
|
||||
import { EncryptionMethod } from '../e2ee/EncryptionService';
|
||||
import { updateMasterPassword } from '../e2ee/utils';
|
||||
|
||||
describe('Synchronizer.ppk', function() {
|
||||
describe('Synchronizer.ppk', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -15,7 +15,7 @@ import { loadMasterKeysFromSettings } from '../e2ee/utils';
|
||||
|
||||
let insideBeforeEach = false;
|
||||
|
||||
describe('Synchronizer.resources', function() {
|
||||
describe('Synchronizer.resources', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
insideBeforeEach = true;
|
||||
|
@ -5,7 +5,7 @@ import Note from '../../models/Note';
|
||||
import Revision from '../../models/Revision';
|
||||
import { loadMasterKeysFromSettings, setupAndEnableEncryption } from '../e2ee/utils';
|
||||
|
||||
describe('Synchronizer.revisions', function() {
|
||||
describe('Synchronizer.revisions', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
describe('Synchronizer.sharing', function() {
|
||||
describe('Synchronizer.sharing', () => {
|
||||
|
||||
it('should skip', (async () => {
|
||||
expect(true).toBe(true);
|
||||
|
@ -5,7 +5,7 @@ import Tag from '../../models/Tag';
|
||||
import MasterKey from '../../models/MasterKey';
|
||||
import { setEncryptionEnabled } from '../synchronizer/syncInfoUtils';
|
||||
|
||||
describe('Synchronizer.tags', function() {
|
||||
describe('Synchronizer.tags', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -4,7 +4,7 @@ import Folder from '../../models/Folder';
|
||||
import Note from '../../models/Note';
|
||||
import { clearLocalDataForRedownload, clearLocalSyncStateForReupload } from '../../services/synchronizer/tools';
|
||||
|
||||
describe('Synchronizer.tools', function() {
|
||||
describe('Synchronizer.tools', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -52,7 +52,7 @@ export default function useSyncTargetUpgrade(): SyncTargetUpgradeResult {
|
||||
});
|
||||
}
|
||||
|
||||
useEffect(function() {
|
||||
useEffect(() => {
|
||||
void upgradeSyncTarget();
|
||||
}, []);
|
||||
|
||||
|
@ -2,7 +2,7 @@ import { afterAllCleanUp, setupDatabaseAndSynchronizer, switchClient, encryption
|
||||
import MasterKey from '../../models/MasterKey';
|
||||
import { masterKeyEnabled, mergeSyncInfos, setMasterKeyEnabled, SyncInfo, syncInfoEquals } from './syncInfoUtils';
|
||||
|
||||
describe('syncInfoUtils', function() {
|
||||
describe('syncInfoUtils', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await setupDatabaseAndSynchronizer(1);
|
||||
|
@ -20,7 +20,7 @@ function lockHandler(): LockHandler {
|
||||
return lockHandler_;
|
||||
}
|
||||
|
||||
describe('synchronizer_LockHandler', function() {
|
||||
describe('synchronizer_LockHandler', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
// logger.setLevel(Logger.LEVEL_WARN);
|
||||
|
@ -143,7 +143,7 @@ async function testMigrationE2EE(migrationVersion: number, maxSyncVersion: numbe
|
||||
|
||||
let previousSyncTargetName = '';
|
||||
|
||||
describe('MigrationHandler', function() {
|
||||
describe('MigrationHandler', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
// Note that, for undocumented reasons, the timeout argument passed
|
||||
|
Reference in New Issue
Block a user