From c0489ad754e5d191b48c50cb08d7fcd4d45af2c2 Mon Sep 17 00:00:00 2001 From: Mohamed Gharsallah Date: Fri, 30 Sep 2016 14:42:07 +0100 Subject: [PATCH] update tests --- .../deploy/compile/events/s3/tests/index.js | 19 ------------------- 1 file changed, 19 deletions(-) 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: {