@@ -11,6 +11,7 @@ import * as ensureApis from "../../dataconnect/ensureApis";
1111import * as requireTosAcceptance from "../../requireTosAcceptance" ;
1212import * as schemaMigration from "../../dataconnect/schemaMigration" ;
1313import * as provisionCloudSql from "../../dataconnect/provisionCloudSql" ;
14+ import * as cloudbilling from "../../gcp/cloudbilling" ;
1415import { FirebaseError } from "../../error" ;
1516
1617describe ( "dataconnect prepare" , ( ) => {
@@ -20,6 +21,7 @@ describe("dataconnect prepare", () => {
2021 let getResourceFiltersStub : sinon . SinonStub ;
2122 let diffSchemaStub : sinon . SinonStub ;
2223 let setupCloudSqlStub : sinon . SinonStub ;
24+ let checkBillingEnabledStub : sinon . SinonStub ;
2325
2426 beforeEach ( ( ) => {
2527 sandbox = sinon . createSandbox ( ) ;
@@ -30,13 +32,14 @@ describe("dataconnect prepare", () => {
3032 getResourceFiltersStub = sandbox . stub ( filters , "getResourceFilters" ) . returns ( undefined ) ;
3133 diffSchemaStub = sandbox . stub ( schemaMigration , "diffSchema" ) . resolves ( ) ;
3234 setupCloudSqlStub = sandbox . stub ( provisionCloudSql , "setupCloudSql" ) . resolves ( ) ;
35+ checkBillingEnabledStub = sandbox . stub ( cloudbilling , "checkBillingEnabled" ) . resolves ( ) ;
3336 sandbox . stub ( projectUtils , "needProjectId" ) . returns ( "test-project" ) ;
3437 sandbox . stub ( utils , "logLabeledBullet" ) ;
3538 } ) ;
3639
3740 afterEach ( ( ) => {
3841 sandbox . restore ( ) ;
39- nock . cleanAll ( ) ;
42+ nock . cleanAll ( )
4043 } ) ;
4144
4245 it ( "should do nothing if there are no services" , async ( ) => {
0 commit comments