diff --git a/packages/backend/src/configuration/__mocks__/environment.ts b/packages/backend/src/configuration/__mocks__/environment.ts index 39d7c2ec..2c33f6cb 100644 --- a/packages/backend/src/configuration/__mocks__/environment.ts +++ b/packages/backend/src/configuration/__mocks__/environment.ts @@ -7,6 +7,7 @@ export const config = { secret: 'secret', expiresIn: '6h', }, + logToFile: false, mongo: { host: 'mongodb://localhost:27017/fmdb', }, diff --git a/packages/backend/tests/administrator.spec.ts b/packages/backend/tests/administrator.spec.ts index d6ab93d9..e053df62 100644 --- a/packages/backend/tests/administrator.spec.ts +++ b/packages/backend/tests/administrator.spec.ts @@ -20,7 +20,9 @@ describe('administrator/index.ts adminAdministratorPostRequest', () => { mockRequest = { headers: {}, body: {}, - token: {} + token: { + data: {} + } } as Request & JWT; mockResponse = { @@ -65,7 +67,10 @@ describe('administrator/index.ts adminAdministratorGetRequest', () => { mockRequest = { headers: {}, body: {}, - } as Request; + token: { + data: {} + } + } as Request & JWT; mockResponse = { status: jest.fn(() => mockResponse), @@ -130,7 +135,9 @@ describe('administrator/index.ts adminAdministratorDeleteRequest', () => { body: {}, params: {}, query: {}, - token: {} + token: { + data: {} + } } as Request & JWT; mockResponse = {