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, },