@@ -11,7 +11,8 @@ describe('Event', function () {
11
11
id : 'my-global-script-1' ,
12
12
script : {
13
13
type : 'text/javascript' ,
14
- exec : 'console.log("hello");'
14
+ exec : 'console.log("hello");' ,
15
+ packages : [ ]
15
16
}
16
17
} ;
17
18
@@ -52,6 +53,7 @@ describe('Event', function () {
52
53
expect ( postmanEvent ) . to . have . property ( 'script' ) . that . is . an ( 'object' ) ;
53
54
expect ( postmanEvent . script ) . to . have . property ( 'type' , 'text/javascript' ) ;
54
55
expect ( postmanEvent . script ) . to . have . property ( 'exec' ) . that . is . an ( 'array' ) ;
56
+ expect ( postmanEvent . script ) . to . have . property ( 'packages' ) . that . is . an ( 'array' ) ;
55
57
} ) ;
56
58
} ) ;
57
59
@@ -120,7 +122,8 @@ describe('Event', function () {
120
122
expect ( eventJSON ) . to . have . property ( 'script' ) . that . has . property ( 'id' ) ;
121
123
expect ( eventJSON . script ) . to . deep . include ( {
122
124
type : 'text/javascript' ,
123
- exec : [ 'console.log("hello");' ]
125
+ exec : [ 'console.log("hello");' ] ,
126
+ packages : [ ]
124
127
} ) ;
125
128
} ) ;
126
129
@@ -132,7 +135,8 @@ describe('Event', function () {
132
135
expect ( beforeJSON ) . to . have . property ( 'script' ) . that . has . property ( 'id' ) ;
133
136
expect ( beforeJSON . script ) . to . deep . include ( {
134
137
type : 'text/javascript' ,
135
- exec : [ 'console.log("hello");' ]
138
+ exec : [ 'console.log("hello");' ] ,
139
+ packages : [ ]
136
140
} ) ;
137
141
138
142
event . update ( { script : { id : 'my-new-script' } } ) ;
0 commit comments