chore: eslint prefer-arrow-callback

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:01:39 -07:00
committed by Julian Lam
parent 707b55b6a5
commit b56d9e12b5
334 changed files with 4995 additions and 5182 deletions

View File

@@ -5,13 +5,13 @@ const assert = require('assert');
const db = require('./mocks/databasemock');
const upgrade = require('../src/upgrade');
describe('Upgrade', function () {
it('should get all upgrade scripts', async function () {
describe('Upgrade', () => {
it('should get all upgrade scripts', async () => {
const files = await upgrade.getAll();
assert(Array.isArray(files) && files.length > 0);
});
it('should throw error', async function () {
it('should throw error', async () => {
let err;
try {
await upgrade.check();
@@ -21,7 +21,7 @@ describe('Upgrade', function () {
assert.equal(err.message, 'schema-out-of-date');
});
it('should run all upgrades', async function () {
it('should run all upgrades', async () => {
// for upgrade scripts to run
await db.set('schemaDate', 1);
await upgrade.run();