mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
update tests
This commit is contained in:
parent
645491e63b
commit
c0489ad754
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user