Skip to content

Commit d4987cb

Browse files
committed
fix: add noOutput is false test
1 parent 6e83014 commit d4987cb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lib/deploy/stepFunctions/compileStateMachines.test.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,6 +1391,26 @@ describe('#compileStateMachines', () => {
13911391
});
13921392
});
13931393

1394+
it('should output cloudformation outputs section', () => {
1395+
serverless.service.stepFunctions = {
1396+
stateMachines: {
1397+
myStateMachine1: {
1398+
definition: 'definition1',
1399+
role: 'arn:aws:role1',
1400+
},
1401+
myStateMachine2: {
1402+
name: 'stateMachineBeta2',
1403+
definition: 'definition2',
1404+
role: 'arn:aws:role2',
1405+
},
1406+
},
1407+
noOutput: false,
1408+
};
1409+
serverlessStepFunctions.compileStateMachines();
1410+
expect(Object.keys(serverlessStepFunctions.serverless.service.provider
1411+
.compiledCloudFormationTemplate.Outputs).length).to.equal(2);
1412+
});
1413+
13941414
it('should not output cloudformation outputs section', () => {
13951415
serverless.service.stepFunctions = {
13961416
stateMachines: {

0 commit comments

Comments
 (0)