mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Add metadata to errors
This commit is contained in:
@@ -8,6 +8,7 @@ describe('A RedirectResponseDescription', (): void => {
|
||||
it('has status the code and location of the error.', async(): Promise<void> => {
|
||||
const description = new RedirectResponseDescription(error);
|
||||
expect(description.metadata?.get(SOLID_HTTP.terms.location)?.value).toBe(error.location);
|
||||
expect(description.metadata).toBe(error.metadata);
|
||||
expect(description.statusCode).toBe(error.statusCode);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user