File tree 1 file changed +9
-10
lines changed
packages/data-connect/test/unit
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -22,28 +22,27 @@ import chaiAsPromised from 'chai-as-promised';
22
22
23
23
import {
24
24
DataConnect ,
25
- DataConnectOptions ,
26
25
executeQuery ,
27
26
getDataConnect ,
28
27
mutationRef ,
29
- queryRef ,
28
+ queryRef
30
29
} from '../../src' ;
31
30
import { Code , DataConnectError } from '../../src/core/error' ;
32
31
chai . use ( chaiAsPromised ) ;
33
- const options : DataConnectOptions = {
34
- connector : 'c' ,
35
- location : 'l' ,
36
- projectId : 'p' ,
37
- service : 's'
38
- } ;
39
32
40
33
describe ( 'Query Manager Tests' , ( ) => {
41
34
let dc : DataConnect ;
42
35
let app : FirebaseApp ;
36
+ const APPID = 'MYAPPID' ;
37
+ const APPNAME = 'MYAPPNAME' ;
43
38
44
39
beforeEach ( ( ) => {
45
- app = initializeApp ( { projectId : 'p' } ) ;
46
- dc = getDataConnect ( app , options ) ;
40
+ app = initializeApp ( { projectId : 'p' , appId : APPID } , APPNAME ) ;
41
+ dc = getDataConnect ( app , {
42
+ connector : 'c' ,
43
+ location : 'l' ,
44
+ service : 's'
45
+ } ) ;
47
46
} ) ;
48
47
afterEach ( async ( ) => {
49
48
await dc . _delete ( ) ;
You can’t perform that action at this time.
0 commit comments