File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
packages/installations/src/api Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1717
1818import { expect } from 'chai' ;
1919import { getId } from './get-id' ;
20- import { FAKE_INSTALLATIONS_ID , getFakeInstallations , getFakeServerApp } from '../testing/fake-generators' ;
20+ import {
21+ FAKE_INSTALLATIONS_ID ,
22+ getFakeInstallations ,
23+ getFakeServerApp
24+ } from '../testing/fake-generators' ;
2125
2226describe ( 'getId-serverapp' , ( ) => {
23- it ( 'getId with firebaseServerApp with authIdToken returns valid id' , async ( ) => {
24- const installationsAuthToken = " fakeToken" ;
27+ it ( 'getId with firebaseServerApp with authIdToken returns valid id' , async ( ) => {
28+ const installationsAuthToken = ' fakeToken' ;
2529 const serverApp = getFakeServerApp ( installationsAuthToken ) ;
2630 const installations = getFakeInstallations ( serverApp ) ;
2731 const fid = await getId ( installations ) ;
2832 expect ( fid ) . to . equal ( FAKE_INSTALLATIONS_ID ) ;
2933 } ) ;
30- it ( 'getId with firebaseServerApp without authIdToken throws' , async ( ) => {
34+ it ( 'getId with firebaseServerApp without authIdToken throws' , async ( ) => {
3135 const serverApp = getFakeServerApp ( ) ;
3236 const installations = getFakeInstallations ( serverApp ) ;
3337 let fails = false ;
3438 try {
3539 await getId ( installations ) ;
36- } catch ( e ) {
40+ } catch ( e ) {
3741 console . error ( e ) ;
3842 fails = true ;
3943 }
Original file line number Diff line number Diff line change 1717
1818import { expect , use } from 'chai' ;
1919import { getToken } from './get-token' ;
20- import { getFakeInstallations , getFakeServerApp } from '../testing/fake-generators' ;
20+ import {
21+ getFakeInstallations ,
22+ getFakeServerApp
23+ } from '../testing/fake-generators' ;
2124import chaiAsPromised from 'chai-as-promised' ;
2225
2326use ( chaiAsPromised ) ;
2427
2528describe ( 'getToken-serverapp' , ( ) => {
2629 it ( 'getToken with firebaseServerApp with authIdToken returns valid token' , async ( ) => {
27- const installationsAuthToken = " fakeToken.abc123" ;
30+ const installationsAuthToken = ' fakeToken' ;
2831 const serverApp = getFakeServerApp ( installationsAuthToken ) ;
2932 const installations = getFakeInstallations ( serverApp ) ;
3033 const token = await getToken ( installations ) ;
@@ -36,7 +39,7 @@ describe('getToken-serverapp', () => {
3639 let fails = false ;
3740 try {
3841 await getToken ( installations ) ;
39- } catch ( e ) {
42+ } catch ( e ) {
4043 fails = true ;
4144 }
4245 expect ( fails ) . to . be . true ;
You can’t perform that action at this time.
0 commit comments