Handle optional OAuth config in visibility regression assertion
This commit is contained in:
@@ -44,7 +44,7 @@ describe('config visibility', () => {
|
||||
...defaults,
|
||||
oauth: { ...defaults.oauth, accountManagementUrl: 'https://accounts.example.com', clientSecret: 'private' },
|
||||
};
|
||||
expect(mapUserConfig(config).oauth.accountManagementUrl).toBe('https://accounts.example.com');
|
||||
expect(mapUserConfig(config).oauth?.accountManagementUrl).toBe('https://accounts.example.com');
|
||||
expect(mapUserConfig(config).oauth).not.toHaveProperty('clientSecret');
|
||||
expect(mapPublicConfig(config).oauth).not.toHaveProperty('accountManagementUrl');
|
||||
expect(mapPublicConfig(config).oauth).not.toHaveProperty('clientSecret');
|
||||
|
||||
Reference in New Issue
Block a user