From f2a4f96f362eaee081d466b3f282738b72ba74fa Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Tue, 25 Jan 2022 13:37:47 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20Rename=20`=E2=80=A6compile/events/l?= =?UTF-8?q?ib/ensureApiGatewayCloudWatchRole.js`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/plugins/aws/package/compile/events/apiGateway/lib/stage.js | 2 +- ...CloudWatchRole.js => ensure-api-gateway-cloud-watch-role.js} | 0 lib/plugins/aws/package/compile/events/websockets/lib/stage.js | 2 +- ...Role.test.js => ensure-api-gateway-cloud-watch-role.test.js} | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename lib/plugins/aws/package/compile/events/lib/{ensureApiGatewayCloudWatchRole.js => ensure-api-gateway-cloud-watch-role.js} (100%) rename test/unit/lib/plugins/aws/package/compile/events/lib/{ensureApiGatewayCloudWatchRole.test.js => ensure-api-gateway-cloud-watch-role.test.js} (98%) diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/stage.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/stage.js index b3eac580e..6ce660efc 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/stage.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/stage.js @@ -5,7 +5,7 @@ // NOTE: --> Keep this file in sync with ./hack/updateStage.js const _ = require('lodash'); -const ensureApiGatewayCloudWatchRole = require('../../lib/ensureApiGatewayCloudWatchRole'); +const ensureApiGatewayCloudWatchRole = require('../../lib/ensure-api-gateway-cloud-watch-role'); module.exports = { async compileStage() { diff --git a/lib/plugins/aws/package/compile/events/lib/ensureApiGatewayCloudWatchRole.js b/lib/plugins/aws/package/compile/events/lib/ensure-api-gateway-cloud-watch-role.js similarity index 100% rename from lib/plugins/aws/package/compile/events/lib/ensureApiGatewayCloudWatchRole.js rename to lib/plugins/aws/package/compile/events/lib/ensure-api-gateway-cloud-watch-role.js diff --git a/lib/plugins/aws/package/compile/events/websockets/lib/stage.js b/lib/plugins/aws/package/compile/events/websockets/lib/stage.js index 24db29fcd..837f1e090 100644 --- a/lib/plugins/aws/package/compile/events/websockets/lib/stage.js +++ b/lib/plugins/aws/package/compile/events/websockets/lib/stage.js @@ -1,7 +1,7 @@ 'use strict'; const BbPromise = require('bluebird'); -const ensureApiGatewayCloudWatchRole = require('../../lib/ensureApiGatewayCloudWatchRole'); +const ensureApiGatewayCloudWatchRole = require('../../lib/ensure-api-gateway-cloud-watch-role'); const ServerlessError = require('../../../../../../../serverless-error'); const defaultLogLevel = 'INFO'; diff --git a/test/unit/lib/plugins/aws/package/compile/events/lib/ensureApiGatewayCloudWatchRole.test.js b/test/unit/lib/plugins/aws/package/compile/events/lib/ensure-api-gateway-cloud-watch-role.test.js similarity index 98% rename from test/unit/lib/plugins/aws/package/compile/events/lib/ensureApiGatewayCloudWatchRole.test.js rename to test/unit/lib/plugins/aws/package/compile/events/lib/ensure-api-gateway-cloud-watch-role.test.js index cea46e9e6..0a57a4e3c 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/lib/ensureApiGatewayCloudWatchRole.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/lib/ensure-api-gateway-cloud-watch-role.test.js @@ -18,7 +18,7 @@ describe('ensureApiGatewayCloudWatchRole', () => { beforeEach(() => { addCustomResourceToServiceStub = sinon.stub().resolves(); ensureApiGatewayCloudWatchRole = proxyquire( - '../../../../../../../../../lib/plugins/aws/package/compile/events/lib/ensureApiGatewayCloudWatchRole', + '../../../../../../../../../lib/plugins/aws/package/compile/events/lib/ensure-api-gateway-cloud-watch-role', { '../../../../custom-resources': { addCustomResourceToService: addCustomResourceToServiceStub,