mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Integrate acl with rest of server
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user