@@ -21,13 +21,13 @@ import {
2121 getDefaultEmulatorHost ,
2222 getDefaultEmulatorHostnameAndPort
2323} from '../src/defaults' ;
24- import * as environment from '../src/environment ' ;
24+ import * as global from '../src/global ' ;
2525
2626use ( sinonChai ) ;
2727
2828describe ( 'getDefaultEmulatorHost' , ( ) => {
2929 after ( ( ) => {
30- delete environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ ;
30+ delete global . getGlobal ( ) . __FIREBASE_DEFAULTS__ ;
3131 } ) ;
3232
3333 context ( 'with no config' , ( ) => {
@@ -68,7 +68,7 @@ describe('getDefaultEmulatorHost', () => {
6868 context ( 'with no config and something unexpected throws' , ( ) => {
6969 let consoleInfoStub : SinonStub ;
7070 before ( ( ) => {
71- stub ( environment , 'getGlobal' ) . throws ( new Error ( 'getGlobal threw!' ) ) ;
71+ stub ( global , 'getGlobal' ) . throws ( new Error ( 'getGlobal threw!' ) ) ;
7272 consoleInfoStub = stub ( console , 'info' ) ;
7373 } ) ;
7474 after ( ( ) => {
@@ -83,7 +83,7 @@ describe('getDefaultEmulatorHost', () => {
8383
8484 context ( 'with global config not listing the emulator' , ( ) => {
8585 before ( ( ) => {
86- environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
86+ global . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
8787 emulatorHosts : {
8888 /* no firestore */
8989 database : '127.0.0.1:8080'
@@ -98,7 +98,7 @@ describe('getDefaultEmulatorHost', () => {
9898
9999 context ( 'with IPv4 hostname in global config' , ( ) => {
100100 before ( ( ) => {
101- environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
101+ global . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
102102 emulatorHosts : {
103103 firestore : '127.0.0.1:8080'
104104 }
@@ -112,7 +112,7 @@ describe('getDefaultEmulatorHost', () => {
112112
113113 context ( 'with quoted IPv6 hostname in global config' , ( ) => {
114114 before ( ( ) => {
115- environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
115+ global . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
116116 emulatorHosts : {
117117 firestore : '[::1]:8080'
118118 }
@@ -127,7 +127,7 @@ describe('getDefaultEmulatorHost', () => {
127127
128128describe ( 'getDefaultEmulatorHostnameAndPort' , ( ) => {
129129 after ( ( ) => {
130- delete environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ ;
130+ delete global . getGlobal ( ) . __FIREBASE_DEFAULTS__ ;
131131 } ) ;
132132
133133 context ( 'with no config' , ( ) => {
@@ -138,7 +138,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
138138
139139 context ( 'with global config not listing the emulator' , ( ) => {
140140 before ( ( ) => {
141- environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
141+ global . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
142142 emulatorHosts : {
143143 /* no firestore */
144144 database : '127.0.0.1:8080'
@@ -153,7 +153,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
153153
154154 context ( 'with IPv4 hostname in global config' , ( ) => {
155155 before ( ( ) => {
156- environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
156+ global . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
157157 emulatorHosts : {
158158 firestore : '127.0.0.1:8080'
159159 }
@@ -170,7 +170,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
170170
171171 context ( 'with quoted IPv6 hostname in global config' , ( ) => {
172172 before ( ( ) => {
173- environment . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
173+ global . getGlobal ( ) . __FIREBASE_DEFAULTS__ = {
174174 emulatorHosts : {
175175 firestore : '[::1]:8080'
176176 }
0 commit comments