Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
Fix TypeError: Cannot read properties of undefined (reading 'jwtRequired')
  • Loading branch information
shepherd-l committed Jun 6, 2024
1 parent 1afc186 commit 005e3dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions __test__/unit/core/operationRepo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ describe('OperationRepo tests', () => {
jest.useFakeTimers();
await TestEnvironment.initialize();
broadcastCount = 0;

test.stub(
Database,
'getAppConfig',
Promise.resolve({
jwtRequired: false,
}),
);
});

afterEach(async () => {
Expand Down

0 comments on commit 005e3dd

Please sign in to comment.