Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: pragatimodi <110490169+pragatimodi@users.noreply.github.com>
  • Loading branch information
Xiaoshouzi-gh and pragatimodi committed Apr 11, 2023
1 parent 8fb5f2a commit 9986040
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/auth/project-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export interface UpdateProjectConfigRequest {

/**
* Response received when getting or updating the project config.
* Currently only includes the reCAPTCHA and SMS Region config.
*/
export interface ProjectConfigServerResponse {
smsRegionConfig?: SmsRegionConfig;
Expand All @@ -60,7 +59,6 @@ export interface ProjectConfigServerResponse {

/**
* Request to update the project config.
* Currently only includes the reCAPTCHA and SMS Region config.
*/
export interface ProjectConfigClientRequest {
smsRegionConfig?: SmsRegionConfig;
Expand Down Expand Up @@ -145,7 +143,7 @@ export class ProjectConfig {
* Build the corresponding server request for a UpdateProjectConfigRequest object.
* @param configOptions - The properties to convert to a server request.
* @returns The equivalent server request.
*
*
* @internal
*/
public static buildServerRequest(configOptions: UpdateProjectConfigRequest): ProjectConfigClientRequest {
Expand Down
28 changes: 24 additions & 4 deletions test/integration/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,12 @@ describe('admin.auth', () => {
multiFactorConfig: mfaConfig,
recaptchaConfig: {
emailPasswordEnforcementState: 'AUDIT',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
useAccountDefender: true,
},
};
Expand Down Expand Up @@ -1263,7 +1268,12 @@ describe('admin.auth', () => {
multiFactorConfig: mfaConfig,
recaptchaConfig: {
emailPasswordEnforcementState: 'AUDIT',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
useAccountDefender: true,
},
};
Expand All @@ -1276,7 +1286,12 @@ describe('admin.auth', () => {
multiFactorConfig: mfaConfig,
recaptchaConfig: {
emailPasswordEnforcementState: 'OFF',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
},
};
const expectedProjectConfigSmsEnabledTotpDisabled: any = {
Expand All @@ -1293,7 +1308,12 @@ describe('admin.auth', () => {
},
recaptchaConfig: {
emailPasswordEnforcementState: 'OFF',
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
managedRules: [
{
endScore: 0.1,
action: 'BLOCK',
},
],
},
};

Expand Down

0 comments on commit 9986040

Please sign in to comment.