fix: eslint warnings (#252)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import request from 'supertest';
|
||||
import express from 'express';
|
||||
import updateRoute from './update';
|
||||
import { Sequelize } from 'sequelize';
|
||||
import updateRoute from './update';
|
||||
import { roles } from './authSettings';
|
||||
|
||||
const adminRoleIndex = roles.findIndex((entry) => entry.uid === 'administrator');
|
||||
@@ -28,7 +28,7 @@ const mockUser = {
|
||||
update: vi.fn(),
|
||||
};
|
||||
vi.mock('../../models/users', () => ({
|
||||
default: (sequelize, DataTypes) => mockUser,
|
||||
default: () => mockUser,
|
||||
}));
|
||||
|
||||
// test
|
||||
|
||||
Reference in New Issue
Block a user