@@ -31,6 +31,8 @@ function createDotComAccount(login = 'octocat'): Account {
3131 login ,
3232 getDotComAPIEndpoint ( ) ,
3333 'test-token' ,
34+ '' ,
35+ 0 ,
3436 [ ] ,
3537 'https://avatars.githubusercontent.com/u/1' ,
3638 1 ,
@@ -43,7 +45,18 @@ function createEnterpriseAccount(
4345 login = 'enterprise-user' ,
4446 endpoint = 'https://github.example.com/api/v3'
4547) : Account {
46- return new Account ( login , endpoint , 'ent-token' , [ ] , '' , 2 , login , 'free' )
48+ return new Account (
49+ login ,
50+ endpoint ,
51+ 'ent-token' ,
52+ '' ,
53+ 0 ,
54+ [ ] ,
55+ '' ,
56+ 2 ,
57+ login ,
58+ 'free'
59+ )
4760}
4861
4962describe ( 'SignInStore' , ( ) => {
@@ -74,7 +87,7 @@ describe('SignInStore', () => {
7487 }
7588 } )
7689
77- it ( 'transitions to ExistingAccountWarning when a dotcom account exists' , async ( ) => {
90+ it ( 'transitions to Authentication even if a dotcom account exists' , async ( ) => {
7891 const existingAccount = createDotComAccount ( )
7992 accountsStore = createAccountsStore ( )
8093 signInStore = new SignInStore ( accountsStore )
@@ -84,7 +97,7 @@ describe('SignInStore', () => {
8497 signInStore . beginDotComSignIn ( )
8598 const state = signInStore . getState ( )
8699 assert . notEqual ( state , null )
87- assert . equal ( state ?. kind , SignInStep . ExistingAccountWarning )
100+ assert . equal ( state ?. kind , SignInStep . Authentication )
88101 } )
89102
90103 it ( 'calls resultCallback when provided' , async ( ) => {
@@ -171,7 +184,7 @@ describe('SignInStore', () => {
171184 }
172185 } )
173186
174- it ( 'shows ExistingAccountWarning if enterprise account exists' , async ( ) => {
187+ it ( 'shows Authentication even if enterprise account exists' , async ( ) => {
175188 const endpoint = 'https://github.example.com/api/v3'
176189 const existingAccount = createEnterpriseAccount ( 'user' , endpoint )
177190 accountsStore = createAccountsStore ( )
@@ -183,7 +196,7 @@ describe('SignInStore', () => {
183196 await signInStore . setEndpoint ( 'https://github.example.com' )
184197
185198 const state = signInStore . getState ( )
186- assert . equal ( state ?. kind , SignInStep . ExistingAccountWarning )
199+ assert . equal ( state ?. kind , SignInStep . Authentication )
187200 } )
188201 } )
189202
0 commit comments