@@ -29,21 +29,18 @@ import { Endpoint } from '../../api';
29
29
import { UserInternal } from '../../model/user' ;
30
30
import { _castAuth } from './auth_impl' ;
31
31
import { connectAuthEmulator } from './emulator' ;
32
- import { FetchProvider } from '../util/fetch_provider' ;
33
32
34
33
use ( sinonChai ) ;
35
34
use ( chaiAsPromised ) ;
36
35
37
- describe . only ( 'core/auth/emulator' , ( ) => {
36
+ describe ( 'core/auth/emulator' , ( ) => {
38
37
let auth : TestAuth ;
39
38
let user : UserInternal ;
40
39
let normalEndpoint : fetch . Route ;
41
40
let emulatorEndpoint : fetch . Route ;
42
- let spy : sinon . SinonSpy ;
43
41
44
42
beforeEach ( async ( ) => {
45
43
auth = await testAuth ( ) ;
46
- spy = sinon . spy ( FetchProvider . fetch ( ) ) ;
47
44
user = testUser ( _castAuth ( auth ) , 'uid' , 'email' , true ) ;
48
45
fetch . setUp ( ) ;
49
46
normalEndpoint = mockEndpoint ( Endpoint . DELETE_ACCOUNT , { } ) ;
@@ -96,33 +93,6 @@ describe.only('core/auth/emulator', () => {
96
93
'auth/emulator-config-failed'
97
94
) ;
98
95
} ) ;
99
- it . only ( 'sends the proper value' , async ( ) => {
100
- expect ( ( ) => connectAuthEmulator ( auth , 'http://127.0.0.1:2020' ) ) . to . not
101
- . throw ;
102
- await user . delete ( ) ;
103
- expect ( spy ) . to . have . been . called ;
104
- expect ( ( ) => connectAuthEmulator ( auth , 'http://127.0.0.1:2021' ) ) . to . throw (
105
- FirebaseError ,
106
- 'auth/emulator-config-failed'
107
- ) ;
108
- } ) ;
109
-
110
- it ( 'subsequent calls update the endpoint appropriately' , async ( ) => {
111
- connectAuthEmulator ( auth , 'http://127.0.0.1:2021' ) ;
112
- expect ( auth . emulatorConfig ) . to . eql ( {
113
- protocol : 'http' ,
114
- host : '127.0.0.1' ,
115
- port : 2021 ,
116
- options : { disableWarnings : false }
117
- } ) ;
118
- connectAuthEmulator ( auth , 'http://127.0.0.1:2020' ) ;
119
- expect ( auth . emulatorConfig ) . to . eql ( {
120
- protocol : 'http' ,
121
- host : '127.0.0.1' ,
122
- port : 2020 ,
123
- options : { disableWarnings : false }
124
- } ) ;
125
- } ) ;
126
96
127
97
it ( 'subsequent calls update the endpoint appropriately' , async ( ) => {
128
98
connectAuthEmulator ( auth , 'http://127.0.0.1:2021' ) ;
0 commit comments