File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
16
16
return this . serverless . yamlParser
17
17
. parse ( serverlessYmlPath )
18
18
. then ( ( serverlessFileParam ) => {
19
- this . serverless . service . stepFunctions = serverlessFileParam . stepFunctions . stateMachine ;
19
+ this . serverless . service . stepFunctions = serverlessFileParam . stepFunctions . stateMachines ;
20
20
this . serverless . variables . populateService ( this . serverless . pluginManager . cliOptions ) ;
21
21
return BbPromise . resolve ( ) ;
22
22
} ) ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ describe('dataProsessing', () => {
42
42
let yamlParserStub ;
43
43
beforeEach ( ( ) => {
44
44
yamlParserStub = sinon . stub ( serverlessStepFunctions . serverless . yamlParser , 'parse' )
45
- . returns ( BbPromise . resolve ( { stepFunctions : { stateMachine : 'stepFunctions' } } ) ) ;
45
+ . returns ( BbPromise . resolve ( { stepFunctions : { stateMachines : 'stepFunctions' } } ) ) ;
46
46
serverlessStepFunctions . serverless . config . servicePath = 'servicePath' ;
47
47
} ) ;
48
48
@@ -67,7 +67,7 @@ describe('dataProsessing', () => {
67
67
it ( 'should return resolve when variables exists in the yaml' , ( ) => {
68
68
serverlessStepFunctions . serverless . yamlParser . parse . restore ( ) ;
69
69
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}' } } ) ) ;
71
71
serverlessStepFunctions . yamlParse ( )
72
72
. then ( ( ) => {
73
73
expect ( yamlParserStub . calledOnce ) . to . be . equal ( true ) ;
You can’t perform that action at this time.
0 commit comments