File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
1616 return this . serverless . yamlParser
1717 . parse ( serverlessYmlPath )
1818 . then ( ( serverlessFileParam ) => {
19- this . serverless . service . stepFunctions = serverlessFileParam . stepFunctions . stateMachine ;
19+ this . serverless . service . stepFunctions = serverlessFileParam . stepFunctions . stateMachines ;
2020 this . serverless . variables . populateService ( this . serverless . pluginManager . cliOptions ) ;
2121 return BbPromise . resolve ( ) ;
2222 } ) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ describe('dataProsessing', () => {
4242 let yamlParserStub ;
4343 beforeEach ( ( ) => {
4444 yamlParserStub = sinon . stub ( serverlessStepFunctions . serverless . yamlParser , 'parse' )
45- . returns ( BbPromise . resolve ( { stepFunctions : { stateMachine : 'stepFunctions' } } ) ) ;
45+ . returns ( BbPromise . resolve ( { stepFunctions : { stateMachines : 'stepFunctions' } } ) ) ;
4646 serverlessStepFunctions . serverless . config . servicePath = 'servicePath' ;
4747 } ) ;
4848
@@ -67,7 +67,7 @@ describe('dataProsessing', () => {
6767 it ( 'should return resolve when variables exists in the yaml' , ( ) => {
6868 serverlessStepFunctions . serverless . yamlParser . parse . restore ( ) ;
6969 yamlParserStub = sinon . stub ( serverlessStepFunctions . serverless . yamlParser , 'parse' )
70- . returns ( BbPromise . resolve ( { stepFunctions : { stateMachine : '${self:defaults.region}' } } ) ) ;
70+ . returns ( BbPromise . resolve ( { stepFunctions : { stateMachines : '${self:defaults.region}' } } ) ) ;
7171 serverlessStepFunctions . yamlParse ( )
7272 . then ( ( ) => {
7373 expect ( yamlParserStub . calledOnce ) . to . be . equal ( true ) ;
You can’t perform that action at this time.
0 commit comments