update tests

This commit is contained in:
Mohamed Gharsallah 2016-09-30 14:42:07 +01:00
parent 645491e63b
commit c0489ad754

View File

@ -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: {