-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96113b4
commit 9914753
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ import { | |
} from 'juno-proto'; | ||
import * as GRPC from '@grpc/grpc-js'; | ||
import * as ProtoLoader from '@grpc/proto-loader'; | ||
import { RpcExceptionFilter } from 'src/rpc_exception_filter'; | ||
|
||
let app: INestApplication; | ||
const ADMIN_EMAIL = '[email protected]'; | ||
|
@@ -151,6 +152,7 @@ beforeEach(async () => { | |
}), | ||
); | ||
app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector))); | ||
app.useGlobalFilters(new RpcExceptionFilter()); | ||
|
||
await app.init(); | ||
|
||
|
@@ -172,7 +174,7 @@ describe('File Download Verification Routes', () => { | |
.post('/file/download') | ||
.set('Authorization', 'Bearer ' + apiKey) | ||
.send(req) | ||
.expect(200); | ||
.expect(201); | ||
}); | ||
it('downloads file without api key', async () => { | ||
const req = { | ||
|