Local API: Return 404 for unknown group library
This commit is contained in:
parent
ecfc217ce9
commit
fad3e25278
2 changed files with 25 additions and 4 deletions
|
@ -281,4 +281,17 @@ describe("Local API Server", function () {
|
|||
assert.equal(response[0].meta.numItems, 1);
|
||||
});
|
||||
});
|
||||
|
||||
describe("/groups/<groupID>", function () {
|
||||
it("should return 404 for unknown group", async function () {
|
||||
let { response } = await apiGet(
|
||||
'/groups/99999999999',
|
||||
{
|
||||
successCodes: [404],
|
||||
responseType: 'text'
|
||||
}
|
||||
);
|
||||
assert.equal(response, "Not found");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue