-
Notifications
You must be signed in to change notification settings - Fork 30
Pv/retain bbox intersects parameters #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5e627ca
to
a8071fc
Compare
res.sendStatus(409) | ||
} else { | ||
next(error) | ||
const itemRes = await api.getItem(collectionId, itemId, es, req.endpoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validate the item exists for a put rather than just the collection (should have been pulled into another PR, but here we are)
@@ -67,17 +67,6 @@ test('POST /collections/:collectionId/items', async (t) => { | |||
t.assert(response.headers['location'].endsWith(`/collections/${collectionId}/items/${itemId}`)) | |||
t.is(response.body, 'Created') | |||
|
|||
// now test mismatched collection ids, while we wait a second for our item propagate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this had been pulled into another test, but not deleted here.
@@ -77,12 +77,12 @@ test('PUT /collections/:collectionId/items/:itemId', async (t) => { | |||
test('PUT /collections/:collectionId/items/:itemId for a non-existent collection or id returns 404"', async (t) => { | |||
const { collectionId } = t.context | |||
|
|||
t.is((await t.context.api.client.patch( | |||
t.is((await t.context.api.client.put( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed updating these tests when copied the patch tests to put tests.
Related Issue(s):
Proposed Changes:
PR Checklist: