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,