refactor: Rename …compile/events/lib/ensureApiGatewayCloudWatchRole.js

This commit is contained in:
Mariusz Nowak 2022-01-25 13:37:47 +01:00 committed by Mariusz Nowak
parent 364e52ad7c
commit f2a4f96f36
4 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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';

View File

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