mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Return 201 when creating new resources
This commit is contained in:
@@ -77,7 +77,8 @@ describe('A Solid server', (): void => {
|
||||
},
|
||||
body: '<a:b> <a:b> <a:b>.',
|
||||
});
|
||||
expect(res.status).toBe(205);
|
||||
expect(res.status).toBe(201);
|
||||
expect(res.headers.get('location')).toBe(url);
|
||||
});
|
||||
|
||||
it('can PUT to resources.', async(): Promise<void> => {
|
||||
@@ -89,7 +90,8 @@ describe('A Solid server', (): void => {
|
||||
},
|
||||
body: '<a:b> <a:b> <a:b>.',
|
||||
});
|
||||
expect(res.status).toBe(205);
|
||||
expect(res.status).toBe(201);
|
||||
expect(res.headers.get('location')).toBe(url);
|
||||
});
|
||||
|
||||
it('can handle PUT errors.', async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user