Skip to content

Commit f9ce8f6

Browse files
committed
Fix tests
1 parent e9dac78 commit f9ce8f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/deploy/dataconnect/prepare.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import * as ensureApis from "../../dataconnect/ensureApis";
1111
import * as requireTosAcceptance from "../../requireTosAcceptance";
1212
import * as schemaMigration from "../../dataconnect/schemaMigration";
1313
import * as provisionCloudSql from "../../dataconnect/provisionCloudSql";
14+
import * as cloudbilling from "../../gcp/cloudbilling";
1415
import { FirebaseError } from "../../error";
1516

1617
describe("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

Comments
 (0)