@@ -76,7 +76,7 @@ describe('HOCs - withVariableContext.js', function() {
76
76
expect ( mockComponent ) . to . have . been . calledWith (
77
77
matchesVariables ( [
78
78
{
79
- name : 'OutputVariable_0svilsd ' ,
79
+ name : 'OutputVariable_1 ' ,
80
80
info : 'Written in Task_2'
81
81
}
82
82
] )
@@ -111,7 +111,11 @@ describe('HOCs - withVariableContext.js', function() {
111
111
expect ( mockComponent ) . to . have . been . calledWith (
112
112
matchesVariables ( [
113
113
{
114
- name : 'OutputVariable_0svilsd' ,
114
+ name : 'InputVariable_1' ,
115
+ info : 'Written in Task_2'
116
+ } ,
117
+ {
118
+ name : 'OutputVariable_1' ,
115
119
info : 'Written in Task_2'
116
120
}
117
121
] )
@@ -160,6 +164,10 @@ describe('HOCs - withVariableContext.js', function() {
160
164
await waitFor ( ( ) => {
161
165
expect ( mockComponent . lastCall ) . to . have . been . calledWith (
162
166
matchesVariables ( [
167
+ {
168
+ name : 'InputVariable_1' ,
169
+ info : 'Written in Task_2'
170
+ } ,
163
171
{
164
172
name : 'newVariable' ,
165
173
info : 'Written in Task_2'
@@ -234,7 +242,7 @@ describe('HOCs - withVariableContext.js', function() {
234
242
expect ( mockComponent ) . to . have . been . calledWith (
235
243
matchesVariables ( [
236
244
{
237
- name : 'OutputVariable_0svilsd ' ,
245
+ name : 'OutputVariable_1 ' ,
238
246
info : 'Written in Task_2'
239
247
} ,
240
248
{
@@ -248,7 +256,7 @@ describe('HOCs - withVariableContext.js', function() {
248
256
} ) ) ;
249
257
250
258
251
- it ( 'should supply variables to extension element' , inject ( async function ( elementRegistry , injector ) {
259
+ it ( 'should supply and filter variables to extension element' , inject ( async function ( elementRegistry , injector ) {
252
260
253
261
// given
254
262
const mockComponent = sinon . spy ( ) ;
@@ -274,7 +282,7 @@ describe('HOCs - withVariableContext.js', function() {
274
282
expect ( mockComponent ) . to . have . been . calledWith (
275
283
matchesVariables ( [
276
284
{
277
- name : 'OutputVariable_0svilsd ' ,
285
+ name : 'InputVariable_1 ' ,
278
286
info : 'Written in Task_2'
279
287
} ,
280
288
{
@@ -311,7 +319,7 @@ describe('HOCs - withVariableContext.js', function() {
311
319
container
312
320
} ) ;
313
321
314
- const ioMapping = ioMappings . outputParameters [ 0 ] ;
322
+ const ioMapping = ioMappings . inputParameters [ 0 ] ;
315
323
316
324
// when
317
325
await act ( ( ) => {
0 commit comments