Skip to content

Commit

Permalink
✅ Fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjarbo committed Jan 6, 2022
1 parent b6bb007 commit 85f9801
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const config = {
secret: 'secret',
expiresIn: '6h',
},
logToFile: false,
mongo: {
host: 'mongodb://localhost:27017/fmdb',
},
Expand Down
13 changes: 10 additions & 3 deletions packages/backend/tests/administrator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ describe('administrator/index.ts adminAdministratorPostRequest', () => {
mockRequest = {
headers: {},
body: {},
token: {}
token: {
data: {}
}
} as Request & JWT;

mockResponse = {
Expand Down Expand Up @@ -65,7 +67,10 @@ describe('administrator/index.ts adminAdministratorGetRequest', () => {
mockRequest = {
headers: {},
body: {},
} as Request;
token: {
data: {}
}
} as Request & JWT;

mockResponse = {
status: jest.fn(() => mockResponse),
Expand Down Expand Up @@ -130,7 +135,9 @@ describe('administrator/index.ts adminAdministratorDeleteRequest', () => {
body: {},
params: {},
query: {},
token: {}
token: {
data: {}
}
} as Request & JWT;

mockResponse = {
Expand Down

0 comments on commit 85f9801

Please sign in to comment.