feat: Integrate acl with rest of server

This commit is contained in:
Joachim Van Herwegen
2020-08-07 11:55:04 +02:00
parent 0545ca121e
commit 769b49293c
7 changed files with 280 additions and 43 deletions

View File

@@ -81,6 +81,10 @@ describe('ExpressHttpServer', (): void => {
handler.handle = async(): Promise<void> => {
throw new Error('dummyError');
};
// Prevent test from writing to stderr
jest.spyOn(process.stderr, 'write').mockImplementation((): boolean => true);
const res = await request(server).get('/').expect(500);
expect(res.text).toContain('dummyError');
});