1
0
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:
pedr
2023-02-20 12:02:29 -03:00
committed by GitHub
parent ca575162f7
commit f2995dd196
206 changed files with 511 additions and 510 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -15,7 +15,7 @@ import { loadMasterKeysFromSettings } from '../e2ee/utils';
let insideBeforeEach = false;
describe('Synchronizer.resources', function() {
describe('Synchronizer.resources', () => {
beforeEach(async () => {
insideBeforeEach = true;

View File

@ -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);

View File

@ -1,4 +1,4 @@
describe('Synchronizer.sharing', function() {
describe('Synchronizer.sharing', () => {
it('should skip', (async () => {
expect(true).toBe(true);

View File

@ -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);

View File

@ -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);

View File

@ -52,7 +52,7 @@ export default function useSyncTargetUpgrade(): SyncTargetUpgradeResult {
});
}
useEffect(function() {
useEffect(() => {
void upgradeSyncTarget();
}, []);

View File

@ -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);

View File

@ -20,7 +20,7 @@ function lockHandler(): LockHandler {
return lockHandler_;
}
describe('synchronizer_LockHandler', function() {
describe('synchronizer_LockHandler', () => {
beforeEach(async () => {
// logger.setLevel(Logger.LEVEL_WARN);

View File

@ -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