forked from keybase/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow skipping email addresses in signup (keybase#18960)
- Loading branch information
Showing
27 changed files
with
464 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,7 +194,7 @@ describe('checkedUsername', () => { | |
}) | ||
|
||
it('shows error', () => { | ||
const state = Constants.makeState({email: '[email protected]', username: 'username'}) | ||
const state = Constants.makeState({username: 'username'}) | ||
const action = SignupGen.createCheckedUsername({ | ||
error: 'another problem', | ||
username: state.username, | ||
|
@@ -204,7 +204,7 @@ describe('checkedUsername', () => { | |
}) | ||
|
||
it('shows device name page on success', () => { | ||
const state = Constants.makeState({email: '[email protected]', username: 'username'}) | ||
const state = Constants.makeState({username: 'username'}) | ||
const action = SignupGen.createCheckedUsername({ | ||
error: '', | ||
username: state.username, | ||
|
@@ -309,18 +309,12 @@ describe('actually sign up', () => { | |
|
||
const validSignup = Constants.makeState({ | ||
devicename: 'a valid devicename', | ||
email: '[email protected]', | ||
inviteCode: '1234566', | ||
username: 'testuser', | ||
}) | ||
|
||
const signupError = new Error('Missing data for signup') | ||
|
||
it('bails on missing email', () => { | ||
expect(() => | ||
_testing.reallySignupOnNoErrors(makeTypedState(validSignup.set('email', ''))).next() | ||
).toThrow(signupError) | ||
}) | ||
it('bails on missing devicename', () => { | ||
expect(() => | ||
_testing.reallySignupOnNoErrors(makeTypedState(validSignup.set('devicename', ''))).next() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,9 @@ | |
"markViewed": {}, | ||
"skipTodo": { | ||
"type": "Types.TodoType" | ||
}, | ||
"setResentEmail": { | ||
"email": "string" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.