Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Feb 8, 2025
1 parent 9537aad commit 1bd7352
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/port/webauth/webauthController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ describe('test/port/webauth/webauthController.test.ts', () => {
assert.equal(loginSessionId.length, 36);
});

it('should check hostname', async () => {
it('should hostname is optional', async () => {
const res = await app.httpRequest()
.post('/-/v1/login');

assert.equal(res.status, 422);
assert.equal(res.body.error, "[INVALID_PARAM] must have required property 'hostname'");
assert.equal(res.status, 200);
});
});

Expand Down

0 comments on commit 1bd7352

Please sign in to comment.