Skip to content

Commit ee6e5bf

Browse files
committed
test(client): fix auth review nits
1 parent 8a34337 commit ee6e5bf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/client/test/client/auth.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3491,12 +3491,8 @@ describe('OAuth Authorization', () => {
34913491
expect(() => validateClientMetadataUrl(undefined)).not.toThrow();
34923492
});
34933493

3494-
it('passes silently when called with no arguments', () => {
3495-
// eslint-disable-next-line unicorn/no-useless-undefined
3496-
expect(() => validateClientMetadataUrl(undefined)).not.toThrow();
3497-
});
3498-
34993494
it('error message matches expected format', () => {
3495+
expect(() => validateClientMetadataUrl('http://example.com/path')).toThrow(OAuthError);
35003496
try {
35013497
validateClientMetadataUrl('http://example.com/path');
35023498
} catch (error) {

0 commit comments

Comments
 (0)