Local API: Return 404 for unknown group library

This commit is contained in:
Dan Stillman 2024-06-19 00:28:59 -04:00
parent ecfc217ce9
commit fad3e25278
2 changed files with 25 additions and 4 deletions

View file

@ -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");
});
});
});