diff --git a/lib/plugins/aws/deploy/compile/events/s3/tests/index.js b/lib/plugins/aws/deploy/compile/events/s3/tests/index.js index db485adcd..9c504d946 100644 --- a/lib/plugins/aws/deploy/compile/events/s3/tests/index.js +++ b/lib/plugins/aws/deploy/compile/events/s3/tests/index.js @@ -87,25 +87,6 @@ describe('AwsCompileS3Events', () => { expect(() => awsCompileS3Events.compileS3Events()).to.throw(Error); }); - it('should throw an error if the "rules" is defined while the "event" is not', () => { - awsCompileS3Events.serverless.service.functions = { - first: { - events: [ - { - s3: { - bucket: 'first-function-bucket', - rules: [ - { prefix: 'subfolder/' }, - ], - }, - }, - ], - }, - }; - - expect(() => awsCompileS3Events.compileS3Events()).to.throw(Error); - }); - it('should create corresponding resources when S3 events are given', () => { awsCompileS3Events.serverless.service.functions = { first: {