mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
refactor: Normalize module path
This commit is contained in:
parent
5d584a1cdd
commit
38ee5eee50
@ -2,7 +2,7 @@
|
||||
|
||||
const _ = require('lodash');
|
||||
const BbPromise = require('bluebird');
|
||||
const { addCustomResourceToService } = require('../../../../customResources');
|
||||
const { addCustomResourceToService } = require('../../../customResources');
|
||||
|
||||
const validTriggerSources = [
|
||||
'PreSignUp',
|
||||
@ -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'),
|
||||
|
||||
@ -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,
|
||||
},
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user