catch all error in endpoint

This commit is contained in:
Michael C
2021-08-06 00:14:54 -04:00
parent 71c01c0f3b
commit 5ad7c6a3ba
4 changed files with 65 additions and 32 deletions

View File

@@ -146,7 +146,7 @@ describe("getSegmentInfo", () => {
});
it("Should be able to retreive hidden segment", (done: Done) => {
fetch(`${getbaseURL() }/api/segmentInfo?UUID=${hiddenID}`)
fetch(`${getbaseURL()}/api/segmentInfo?UUID=${hiddenID}`)
.then(async res => {
assert.strictEqual(res.status, 200);
const data = await res.json();