From 57e618aa36a733d75637f7600e4047f8df855f09 Mon Sep 17 00:00:00 2001 From: ace-n Date: Mon, 18 May 2020 16:02:44 -0700 Subject: [PATCH] GCF logging: take 2 of #1734 --- functions/log/package.json | 3 +-- functions/log/test/index.test.js | 10 ---------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/functions/log/package.json b/functions/log/package.json index 285e996857..058f8a1402 100644 --- a/functions/log/package.json +++ b/functions/log/package.json @@ -15,8 +15,7 @@ "test": "mocha test/*.test.js --timeout=20000" }, "dependencies": { - "@google-cloud/logging": "^7.0.0", - "@google-cloud/monitoring": "^1.0.0" + "@google-cloud/logging": "^7.0.0" }, "devDependencies": { "mocha": "^7.0.0", diff --git a/functions/log/test/index.test.js b/functions/log/test/index.test.js index 5c92f939ef..50a009b6ec 100644 --- a/functions/log/test/index.test.js +++ b/functions/log/test/index.test.js @@ -25,10 +25,6 @@ const getSample = () => { }; stream.on.withArgs('end').yields(); - const monitoring = { - projectPath: sinon.stub(), - listTimeSeries: sinon.stub().returns(stream), - }; const logging = { getEntries: sinon.stub().returns(Promise.resolve(results)), }; @@ -36,14 +32,8 @@ const getSample = () => { return { program: proxyquire('../', { '@google-cloud/logging': sinon.stub().returns(logging), - '@google-cloud/monitoring': { - v3: sinon.stub().returns({ - metricServiceApi: sinon.stub().returns(monitoring), - }), - }, }), mocks: { - monitoring: monitoring, logging: logging, results: results, },