This commit is contained in:
Simon Elder 2019-07-12 11:43:28 +10:00
parent 2b2e7b7def
commit dfbc71834f

View File

@ -8,7 +8,6 @@ const Serverless = require('../../../../../../Serverless');
describe('AwsCompileSNSEvents', () => {
let serverless;
let awsCompileSNSEvents;
let awsPlugin;
beforeEach(() => {
serverless = new Serverless();
@ -302,16 +301,14 @@ describe('AwsCompileSNSEvents', () => {
).to.equal('AWS::SNS::Subscription');
expect(
awsCompileSNSEvents.serverless.service.provider.compiledCloudFormationTemplate.Resources
.FirstSnsSubscriptionFoo.Properties.Region
.FirstSnsSubscriptionFoo.Properties.Region
).to.equal('some-other-region');
expect(
awsCompileSNSEvents.serverless.service.provider.compiledCloudFormationTemplate.Resources
.FirstLambdaPermissionFooSNS.Type
).to.equal('AWS::Lambda::Permission');
});
it('should throw an error when the arn an object and the value is not a string', () => {
awsCompileSNSEvents.serverless.service.functions = {
first: {