From b074e355fca424949484e4811a6be840a4f6c5a2 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 14 Dec 2020 13:48:36 +0100 Subject: [PATCH] refactor: Normalize module path --- .../events/{cloudWatchEvent/index.js => cloudWatchEvent.js} | 0 lib/plugins/index.js | 2 +- .../index.test.js => cloudWatchEvent.test.js} | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename lib/plugins/aws/package/compile/events/{cloudWatchEvent/index.js => cloudWatchEvent.js} (100%) rename test/unit/lib/plugins/aws/package/compile/events/{cloudWatchEvent/index.test.js => cloudWatchEvent.test.js} (97%) diff --git a/lib/plugins/aws/package/compile/events/cloudWatchEvent/index.js b/lib/plugins/aws/package/compile/events/cloudWatchEvent.js similarity index 100% rename from lib/plugins/aws/package/compile/events/cloudWatchEvent/index.js rename to lib/plugins/aws/package/compile/events/cloudWatchEvent.js diff --git a/lib/plugins/index.js b/lib/plugins/index.js index b81f3afcb..94222c1a6 100644 --- a/lib/plugins/index.js +++ b/lib/plugins/index.js @@ -45,7 +45,7 @@ module.exports = [ require('./aws/package/compile/events/alexaSkill.js'), require('./aws/package/compile/events/alexaSmartHome.js'), require('./aws/package/compile/events/iot/index.js'), - require('./aws/package/compile/events/cloudWatchEvent/index.js'), + require('./aws/package/compile/events/cloudWatchEvent.js'), require('./aws/package/compile/events/cloudWatchLog/index.js'), require('./aws/package/compile/events/cognitoUserPool/index.js'), require('./aws/package/compile/events/eventBridge/index.js'), diff --git a/test/unit/lib/plugins/aws/package/compile/events/cloudWatchEvent/index.test.js b/test/unit/lib/plugins/aws/package/compile/events/cloudWatchEvent.test.js similarity index 97% rename from test/unit/lib/plugins/aws/package/compile/events/cloudWatchEvent/index.test.js rename to test/unit/lib/plugins/aws/package/compile/events/cloudWatchEvent.test.js index 10fcd3884..a392225a8 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/cloudWatchEvent/index.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/cloudWatchEvent.test.js @@ -1,9 +1,9 @@ 'use strict'; const expect = require('chai').expect; -const AwsProvider = require('../../../../../../../../../lib/plugins/aws/provider/awsProvider'); -const AwsCompileCloudWatchEventEvents = require('../../../../../../../../../lib/plugins/aws/package/compile/events/cloudWatchEvent/index'); -const Serverless = require('../../../../../../../../../lib/Serverless'); +const AwsProvider = require('../../../../../../../../lib/plugins/aws/provider/awsProvider'); +const AwsCompileCloudWatchEventEvents = require('../../../../../../../../lib/plugins/aws/package/compile/events/cloudWatchEvent'); +const Serverless = require('../../../../../../../../lib/Serverless'); describe('awsCompileCloudWatchEventEvents', () => { let serverless;