@@ -21,8 +21,7 @@ import { expect } from 'chai';
21
21
import { getDataConnect } from '../../src' ;
22
22
23
23
describe ( 'Data Connect Test' , ( ) => {
24
- beforeEach ( ( ) => {
25
- } ) ;
24
+ beforeEach ( ( ) => { } ) ;
26
25
it ( 'should throw an error if `projectId` is not provided' , async ( ) => {
27
26
const app = initializeApp ( { projectId : undefined } , 'a' ) ;
28
27
expect ( ( ) =>
@@ -40,18 +39,24 @@ describe('Data Connect Test', () => {
40
39
) . to . not . throw (
41
40
'Project ID must be provided. Did you pass in a proper projectId to initializeApp?'
42
41
) ;
43
- const dc = getDataConnect ( customApp , { connector : 'c' , location : 'l' , service : 's' } ) ;
42
+ const dc = getDataConnect ( customApp , {
43
+ connector : 'c' ,
44
+ location : 'l' ,
45
+ service : 's'
46
+ } ) ;
44
47
expect ( dc . app . options . projectId ) . to . eq ( projectId ) ;
45
48
await deleteApp ( customApp ) ;
46
49
} ) ;
47
50
it ( 'should throw an error if `connectorConfig` is not provided' , async ( ) => {
48
51
const projectId = 'p' ;
49
52
const customApp = initializeApp ( { projectId } , 'customApp' ) ;
50
53
// @ts -ignore
51
- expect ( ( ) => getDataConnect ( customApp ) ) . to . throw (
52
- 'DC Option Required'
53
- ) ;
54
- const dc = getDataConnect ( customApp , { connector : 'c' , location : 'l' , service : 's' } ) ;
54
+ expect ( ( ) => getDataConnect ( customApp ) ) . to . throw ( 'DC Option Required' ) ;
55
+ const dc = getDataConnect ( customApp , {
56
+ connector : 'c' ,
57
+ location : 'l' ,
58
+ service : 's'
59
+ } ) ;
55
60
expect ( dc . app . options . projectId ) . to . eq ( projectId ) ;
56
61
await deleteApp ( customApp ) ;
57
62
} ) ;
0 commit comments