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:
@@ -216,7 +216,7 @@ describe('A LockingResourceStore', (): void => {
|
||||
|
||||
timeoutTrigger.emit('timeout');
|
||||
|
||||
await expect(prom).rejects.toThrow(new Error('timeout'));
|
||||
await expect(prom).rejects.toThrow('timeout');
|
||||
expect(locker.withReadLock).toHaveBeenCalledTimes(1);
|
||||
expect((locker.withReadLock as jest.Mock).mock.calls[0][0]).toEqual({ path: 'path' });
|
||||
expect(source.getRepresentation).toHaveBeenCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user