Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recapcha integ test #1599

Merged
merged 4 commits into from
Mar 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lint
Xiaoshouzi-gh committed Mar 9, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 0faf91343f01755b6a71f621b45feba5657538c8
6 changes: 3 additions & 3 deletions test/integration/auth.spec.ts
Original file line number Diff line number Diff line change
@@ -1163,7 +1163,7 @@ describe('admin.auth', () => {
const projectOption1: UpdateProjectConfigRequest = {
Xiaoshouzi-gh marked this conversation as resolved.
Show resolved Hide resolved
recaptchaConfig: {
emailPasswordEnforcementState: 'AUDIT',
managedRules: [{endScore: 0.1, action: 'BLOCK'}],
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
}
Xiaoshouzi-gh marked this conversation as resolved.
Show resolved Hide resolved
}
Xiaoshouzi-gh marked this conversation as resolved.
Show resolved Hide resolved
const projectOption2: UpdateProjectConfigRequest = {
@@ -1174,13 +1174,13 @@ describe('admin.auth', () => {
const expectedProjectConfig1: any = {
recaptchaConfig: {
emailPasswordEnforcementState: 'AUDIT',
managedRules: [{endScore: 0.1, action: 'BLOCK'}],
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
}
}
const expectedProjectConfig2: any = {
recaptchaConfig: {
emailPasswordEnforcementState: 'OFF',
managedRules: [{endScore: 0.1, action: 'BLOCK'}],
managedRules: [{ endScore: 0.1, action: 'BLOCK' }],
}
}
it('updateProjectConfig() should resolve with the updated project config', () => {