refactor: Normalize module path

This commit is contained in:
Mariusz Nowak 2020-12-14 14:03:45 +01:00 committed by Mariusz Nowak
parent 5d584a1cdd
commit 38ee5eee50
3 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
const _ = require('lodash');
const BbPromise = require('bluebird');
const { addCustomResourceToService } = require('../../../../customResources');
const { addCustomResourceToService } = require('../../../customResources');
const validTriggerSources = [
'PreSignUp',

View File

@ -47,7 +47,7 @@ module.exports = [
require('./aws/package/compile/events/iot/index.js'),
require('./aws/package/compile/events/cloudWatchEvent.js'),
require('./aws/package/compile/events/cloudWatchLog.js'),
require('./aws/package/compile/events/cognitoUserPool/index.js'),
require('./aws/package/compile/events/cognitoUserPool.js'),
require('./aws/package/compile/events/eventBridge/index.js'),
require('./aws/package/compile/events/sqs/index.js'),
require('./aws/package/compile/events/cloudFront.js'),

View File

@ -5,8 +5,8 @@
const sinon = require('sinon');
const chai = require('chai');
const proxyquire = require('proxyquire').noCallThru();
const AwsProvider = require('../../../../../../../../../lib/plugins/aws/provider/awsProvider');
const Serverless = require('../../../../../../../../../lib/Serverless');
const AwsProvider = require('../../../../../../../../lib/plugins/aws/provider/awsProvider');
const Serverless = require('../../../../../../../../lib/Serverless');
const { expect } = chai;
chai.use(require('sinon-chai'));
@ -20,9 +20,9 @@ describe('AwsCompileCognitoUserPoolEvents', () => {
beforeEach(() => {
addCustomResourceToServiceStub = sinon.stub().resolves();
const AwsCompileCognitoUserPoolEvents = proxyquire(
'../../../../../../../../../lib/plugins/aws/package/compile/events/cognitoUserPool/index',
'../../../../../../../../lib/plugins/aws/package/compile/events/cognitoUserPool',
{
'../../../../customResources': {
'../../../customResources': {
addCustomResourceToService: addCustomResourceToServiceStub,
},
}