From 73c8e6def53b59bf173b4dfeed6401e8128e6e1c Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 14 Dec 2020 13:43:57 +0100 Subject: [PATCH] refactor: Normalize module path --- .../events/{alexaSmartHome/index.js => alexaSmartHome.js} | 0 lib/plugins/index.js | 2 +- .../index.test.js => alexaSmartHome.test.js} | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) rename lib/plugins/aws/package/compile/events/{alexaSmartHome/index.js => alexaSmartHome.js} (100%) rename test/unit/lib/plugins/aws/package/compile/events/{alexaSmartHome/index.test.js => alexaSmartHome.test.js} (97%) diff --git a/lib/plugins/aws/package/compile/events/alexaSmartHome/index.js b/lib/plugins/aws/package/compile/events/alexaSmartHome.js similarity index 100% rename from lib/plugins/aws/package/compile/events/alexaSmartHome/index.js rename to lib/plugins/aws/package/compile/events/alexaSmartHome.js diff --git a/lib/plugins/index.js b/lib/plugins/index.js index 381df27ee..f803a7b77 100644 --- a/lib/plugins/index.js +++ b/lib/plugins/index.js @@ -43,7 +43,7 @@ module.exports = [ require('./aws/package/compile/events/msk/index.js'), require('./aws/package/compile/events/alb/index.js'), require('./aws/package/compile/events/alexaSkill.js'), - require('./aws/package/compile/events/alexaSmartHome/index.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/cloudWatchLog/index.js'), diff --git a/test/unit/lib/plugins/aws/package/compile/events/alexaSmartHome/index.test.js b/test/unit/lib/plugins/aws/package/compile/events/alexaSmartHome.test.js similarity index 97% rename from test/unit/lib/plugins/aws/package/compile/events/alexaSmartHome/index.test.js rename to test/unit/lib/plugins/aws/package/compile/events/alexaSmartHome.test.js index 4c76d9859..5edd359d8 100644 --- a/test/unit/lib/plugins/aws/package/compile/events/alexaSmartHome/index.test.js +++ b/test/unit/lib/plugins/aws/package/compile/events/alexaSmartHome.test.js @@ -1,9 +1,9 @@ 'use strict'; const expect = require('chai').expect; -const AwsProvider = require('../../../../../../../../../lib/plugins/aws/provider/awsProvider'); -const AwsCompileAlexaSmartHomeEvents = require('../../../../../../../../../lib/plugins/aws/package/compile/events/alexaSmartHome/index'); -const Serverless = require('../../../../../../../../../lib/Serverless'); +const AwsProvider = require('../../../../../../../../lib/plugins/aws/provider/awsProvider'); +const AwsCompileAlexaSmartHomeEvents = require('../../../../../../../../lib/plugins/aws/package/compile/events/alexaSmartHome'); +const Serverless = require('../../../../../../../../lib/Serverless'); describe('AwsCompileAlexaSmartHomeEvents', () => { let serverless;