mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
test: removed duplicated test case
This commit is contained in:
parent
43f383583a
commit
242cd35374
@ -2450,23 +2450,6 @@ describe('AwsCompileFunctions', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should set Condition when specified', () => {
|
||||
awsCompileFunctions.serverless.service.functions = {
|
||||
func: {
|
||||
handler: 'func.function.handler',
|
||||
name: 'new-service-dev-func',
|
||||
condition: 'IsE2eTest',
|
||||
},
|
||||
};
|
||||
|
||||
return expect(awsCompileFunctions.compileFunctions()).to.be.fulfilled.then(() => {
|
||||
expect(
|
||||
awsCompileFunctions.serverless.service.provider.compiledCloudFormationTemplate.Resources
|
||||
.FuncLambdaFunction.Condition
|
||||
).to.equal('IsE2eTest');
|
||||
});
|
||||
});
|
||||
|
||||
it('should include DependsOn when specified', () => {
|
||||
awsCompileFunctions.serverless.service.functions = {
|
||||
func: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user