1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +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

@ -2,7 +2,7 @@ const { setupDatabaseAndSynchronizer, switchClient } = require('../testing/test-
const Folder = require('../models/Folder').default;
const Note = require('../models/Note').default;
describe('models/BaseItem', function() {
describe('models/BaseItem', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -9,7 +9,7 @@ import ResourceService from '../services/ResourceService';
const testImagePath = `${supportDir}/photo.jpg`;
describe('models/Folder.sharing', function() {
describe('models/Folder.sharing', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -9,7 +9,7 @@ async function allItems() {
return folders.concat(notes);
}
describe('models/Folder', function() {
describe('models/Folder', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -7,7 +7,7 @@ import ItemChange from '../models/ItemChange';
let searchEngine: SearchEngine = null;
describe('models/ItemChange', function() {
describe('models/ItemChange', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -1,7 +1,7 @@
import { encryptionService, msleep, setupDatabaseAndSynchronizer, switchClient } from '../testing/test-utils';
import MasterKey from './MasterKey';
describe('models/MasterKey', function() {
describe('models/MasterKey', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -18,7 +18,7 @@ async function allItems() {
return folders.concat(notes);
}
describe('models/Note', function() {
describe('models/Note', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);
await switchClient(1);
@ -411,7 +411,7 @@ describe('models/Note', function() {
});
describe('models/Note_replacePaths', function() {
describe('models/Note_replacePaths', () => {
function testResourceReplacment(body: string, pathsToTry: string[], expected: string) {
expect(Note['replaceResourceExternalToInternalLinks_'](pathsToTry, body)).toBe(expected);

View File

@ -3,7 +3,7 @@ const { setupDatabaseAndSynchronizer, switchClient } = require('../testing/test-
const Folder = require('../models/Folder').default;
const Note = require('../models/Note').default;
describe('models/Note_CustomSortOrder', function() {
describe('models/Note_CustomSortOrder', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);
await switchClient(1);

View File

@ -6,7 +6,7 @@ import shim from '../shim';
const testImagePath = `${supportDir}/photo.jpg`;
describe('models/Resource', function() {
describe('models/Resource', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -2,7 +2,7 @@ import { expectNotThrow, naughtyStrings, setupDatabaseAndSynchronizer, switchCli
import Note from '../models/Note';
import Revision, { ObjectPatch } from '../models/Revision';
describe('models/Revision', function() {
describe('models/Revision', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -24,7 +24,7 @@ const switchToSubProfileSettings = async () => {
await Setting.load();
};
describe('models/Setting', function() {
describe('models/Setting', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -3,7 +3,7 @@ const Folder = require('../models/Folder').default;
const Note = require('../models/Note').default;
const Tag = require('../models/Tag').default;
describe('models/Tag', function() {
describe('models/Tag', () => {
beforeEach(async () => {
await setupDatabaseAndSynchronizer(1);

View File

@ -1,7 +1,7 @@
import Setting from '../models/Setting';
import time from '../time';
describe('dateFormats', function() {
describe('dateFormats', () => {