mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user