@@ -57,24 +57,24 @@ describe('#index', () => {
57
57
} ) ;
58
58
} ) ;
59
59
60
- it ( 'should run deploy :initialize promise chain in order' , ( ) => {
60
+ it ( 'should run package :initialize promise chain in order' , ( ) => {
61
61
const yamlParseStub = sinon
62
62
. stub ( serverlessStepFunctions , 'yamlParse' ) . returns ( BbPromise . resolve ( ) ) ;
63
- return serverlessStepFunctions . hooks [ 'deploy :initialize' ] ( )
63
+ return serverlessStepFunctions . hooks [ 'package :initialize' ] ( )
64
64
. then ( ( ) => {
65
65
expect ( yamlParseStub . calledOnce ) . to . be . equal ( true ) ;
66
66
serverlessStepFunctions . yamlParse . restore ( ) ;
67
67
} ) ;
68
68
} ) ;
69
69
70
- it ( 'should run deploy :compileFunctions promise chain in order' , ( ) => {
70
+ it ( 'should run package :compileFunctions promise chain in order' , ( ) => {
71
71
const compileIamRoleStub = sinon
72
72
. stub ( serverlessStepFunctions , 'compileIamRole' ) . returns ( BbPromise . resolve ( ) ) ;
73
73
const compileStateMachinesStub = sinon
74
74
. stub ( serverlessStepFunctions , 'compileStateMachines' ) . returns ( BbPromise . resolve ( ) ) ;
75
75
const compileActivitiesStub = sinon
76
76
. stub ( serverlessStepFunctions , 'compileActivities' ) . returns ( BbPromise . resolve ( ) ) ;
77
- return serverlessStepFunctions . hooks [ 'deploy :compileFunctions' ] ( )
77
+ return serverlessStepFunctions . hooks [ 'package :compileFunctions' ] ( )
78
78
. then ( ( ) => {
79
79
expect ( compileIamRoleStub . calledOnce ) . to . be . equal ( true ) ;
80
80
expect ( compileStateMachinesStub . calledAfter ( compileIamRoleStub ) ) . to . be . equal ( true ) ;
@@ -85,7 +85,7 @@ describe('#index', () => {
85
85
} ) ;
86
86
} ) ;
87
87
88
- it ( 'should run deploy :compileEvents promise chain in order when http event is empty' ,
88
+ it ( 'should run package :compileEvents promise chain in order when http event is empty' ,
89
89
( ) => {
90
90
const httpValidateStub = sinon
91
91
. stub ( serverlessStepFunctions , 'httpValidate' ) . returns ( { events : [ ] } ) ;
@@ -99,7 +99,7 @@ describe('#index', () => {
99
99
. stub ( serverlessStepFunctions , 'compileHttpIamRole' ) . returns ( BbPromise . resolve ( ) ) ;
100
100
const compileDeploymentStub = sinon
101
101
. stub ( serverlessStepFunctions , 'compileDeployment' ) . returns ( BbPromise . resolve ( ) ) ;
102
- return serverlessStepFunctions . hooks [ 'deploy :compileEvents' ] ( )
102
+ return serverlessStepFunctions . hooks [ 'package :compileEvents' ] ( )
103
103
. then ( ( ) => {
104
104
expect ( httpValidateStub . calledOnce ) . to . be . equal ( true ) ;
105
105
expect ( compileRestApiStub . notCalled ) . to . be . equal ( true ) ;
@@ -116,7 +116,7 @@ describe('#index', () => {
116
116
} ) ;
117
117
} ) ;
118
118
119
- it ( 'should run deploy :compileEvents promise chain in order' ,
119
+ it ( 'should run package :compileEvents promise chain in order' ,
120
120
( ) => {
121
121
const httpValidateStub = sinon
122
122
. stub ( serverlessStepFunctions , 'httpValidate' ) . returns ( { events : [ 1 , 2 , 3 ] } ) ;
@@ -130,7 +130,7 @@ describe('#index', () => {
130
130
. stub ( serverlessStepFunctions , 'compileHttpIamRole' ) . returns ( BbPromise . resolve ( ) ) ;
131
131
const compileDeploymentStub = sinon
132
132
. stub ( serverlessStepFunctions , 'compileDeployment' ) . returns ( BbPromise . resolve ( ) ) ;
133
- return serverlessStepFunctions . hooks [ 'deploy :compileEvents' ] ( )
133
+ return serverlessStepFunctions . hooks [ 'package :compileEvents' ] ( )
134
134
. then ( ( ) => {
135
135
expect ( httpValidateStub . calledOnce ) . to . be . equal ( true ) ;
136
136
expect ( compileRestApiStub . calledOnce ) . to . be . equal ( true ) ;
0 commit comments