mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Test error classes correctly
This commit is contained in:
@@ -72,6 +72,6 @@ describe('A RoutingResourceStore', (): void => {
|
||||
throw new Error('error');
|
||||
};
|
||||
await expect(store.getRepresentation(identifier, 'preferences' as any, 'conditions' as any))
|
||||
.rejects.toThrow(new Error('error'));
|
||||
.rejects.toThrow('error');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user