Skip to content

Commit

Permalink
test/oidc: add missing describe() blocks (#1400)
Browse files Browse the repository at this point in the history
These were incorrectly excluded while merging #1392 & #1399 into master.
  • Loading branch information
alxndrsn authored Feb 18, 2025
1 parent 7e1cf19 commit 2f57a02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/api/oidc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ describe('api: /oidc/...', () => {
url.searchParams.get('code_challenge').should.match(/^[a-zA-Z0-9-_]{43}$/);
url.searchParams.get('state' ).should.match(/^[a-zA-Z0-9-_]{43}:$/); // eslint-disable-line space-in-parens,no-multi-spaces
})));
});

describe('GET /oidc/callback', () => {
it('should redirect to error page if no parameters are provided', testService(service =>
service.get('/v1/oidc/callback')
.expect(303)
Expand All @@ -49,7 +51,9 @@ describe('api: /oidc/...', () => {
it('should not exist', testService(service =>
service.get('/v1/oidc/login')
.expect(404)));
});

describe('GET /oidc/callback', () => {
it('should not exist', testService(service =>
service.get('/v1/oidc/callback')
.expect(404)));
Expand Down

0 comments on commit 2f57a02

Please sign in to comment.