Skip to content

Commit 5be6baa

Browse files
committed
lint
1 parent 6d71fc3 commit 5be6baa

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/cubejs-api-gateway/test/auth.test.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -679,14 +679,12 @@ describe('test authorization', () => {
679679
//
680680
});
681681

682-
const extendContextMock = jest.fn((req) => {
683-
return {
684-
securityContext: {
685-
...req.securityContext,
686-
extendedField: 'added_by_extend_context',
687-
}
688-
};
689-
});
682+
const extendContextMock = jest.fn((req) => ({
683+
securityContext: {
684+
...req.securityContext,
685+
extendedField: 'added_by_extend_context',
686+
}
687+
}));
690688

691689
const expectSecurityContext = (securityContext) => {
692690
expect(securityContext.uid).toEqual(5);

0 commit comments

Comments
 (0)