@@ -43,12 +43,14 @@ describe('moveOnGlobe', () => {
43
43
type : 'component' ,
44
44
subtype : 'base' ,
45
45
name : 'myBase' ,
46
+ machinePartId : '' ,
46
47
} ;
47
48
const expectedMovementSensorName = {
48
49
namespace : 'viam' ,
49
50
type : 'component' ,
50
51
subtype : 'movementsensor' ,
51
52
name : 'myMovementsensor' ,
53
+ machinePartId : '' ,
52
54
} ;
53
55
const expectedMotionConfiguration = undefined ;
54
56
const expectedExtra = { } ;
@@ -89,12 +91,14 @@ describe('moveOnGlobe', () => {
89
91
type : 'component' ,
90
92
subtype : 'base' ,
91
93
name : 'myBase' ,
94
+ machinePartId : '' ,
92
95
} ,
93
96
{
94
97
namespace : 'viam' ,
95
98
type : 'component' ,
96
99
subtype : 'movementsensor' ,
97
100
name : 'myMovementsensor' ,
101
+ machinePartId : '' ,
98
102
}
99
103
)
100
104
) . resolves . toStrictEqual ( testExecutionId ) ;
@@ -133,12 +137,14 @@ describe('moveOnGlobe', () => {
133
137
type : 'component' ,
134
138
subtype : 'base' ,
135
139
name : 'myBase' ,
140
+ machinePartId : '' ,
136
141
} ;
137
142
const expectedMovementSensorName = {
138
143
namespace : 'viam' ,
139
144
type : 'component' ,
140
145
subtype : 'movementsensor' ,
141
146
name : 'myMovementsensor' ,
147
+ machinePartId : '' ,
142
148
} ;
143
149
const expectedMotionConfiguration = {
144
150
obstacleDetectorsList : [
@@ -148,12 +154,14 @@ describe('moveOnGlobe', () => {
148
154
type : 'service' ,
149
155
subtype : 'vision' ,
150
156
name : 'myVisionService' ,
157
+ machinePartId : '' ,
151
158
} ,
152
159
camera : {
153
160
namespace : 'viam' ,
154
161
type : 'component' ,
155
162
subtype : 'camera' ,
156
163
name : 'myCamera' ,
164
+ machinePartId : '' ,
157
165
} ,
158
166
} ,
159
167
] ,
@@ -219,6 +227,7 @@ describe('stopPlan', () => {
219
227
type : 'component' ,
220
228
subtype : 'base' ,
221
229
name : 'myBase' ,
230
+ machinePartId : '' ,
222
231
} ;
223
232
const expectedExtra = { } ;
224
233
const mock = vi
@@ -244,6 +253,7 @@ describe('stopPlan', () => {
244
253
type : 'component' ,
245
254
subtype : 'base' ,
246
255
name : 'myBase' ,
256
+ machinePartId : '' ,
247
257
} ;
248
258
const expectedExtra = { some : 'extra' } ;
249
259
const mock = vi
@@ -310,6 +320,7 @@ describe('getPlan', () => {
310
320
type : 'component' ,
311
321
subtype : 'base' ,
312
322
name : 'myBase' ,
323
+ machinePartId : '' ,
313
324
} ;
314
325
const expectedLastPlanOnly = false ;
315
326
const expectedExecutionID = '' ;
@@ -340,6 +351,7 @@ describe('getPlan', () => {
340
351
type : 'component' ,
341
352
subtype : 'base' ,
342
353
name : 'myBase' ,
354
+ machinePartId : '' ,
343
355
} ;
344
356
const expectedLastPlanOnly = true ;
345
357
const expectedExecutionID = 'some specific executionID' ;
0 commit comments