fix tests and linting

This commit is contained in:
Michael C
2021-07-22 17:50:39 -04:00
parent dbc8558ec8
commit 87727ef360
5 changed files with 35 additions and 33 deletions

View File

@@ -314,12 +314,12 @@ describe("getUserID", () => {
.catch(err => done(err));
});
it('should return 400 if no username parameter specified', (done: Done) => {
fetch(getbaseURL() + '/api/userID')
.then(res => {
assert.strictEqual(res.status, 400);
done();
})
.catch(() => ("couldn't call endpoint"));
it("should return 400 if no username parameter specified", (done: Done) => {
fetch(`${getbaseURL()}/api/userID`)
.then(res => {
assert.strictEqual(res.status, 400);
done();
})
.catch(() => ("couldn't call endpoint"));
});
});