Skip to content

Commit

Permalink
Automated Protos Update (#269)
Browse files Browse the repository at this point in the history
Co-authored-by: viambot <[email protected]>
Co-authored-by: Cheuk Tse <[email protected]>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent 262aa1e commit 6ac73ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ deps:
- remote: buf.build
owner: viamrobotics
repository: api
commit: 76942291db1c45b7a6892fcd40cb0285
digest: shake256:6092b726f603f898bd08b7463a4753b7f9ae5d743aab772f3cb99286bc1f076d27befd1490a9ef2ab3e38bcca2deebcf53688a3a3738961e924bfaa7cb0d7dc6
commit: cf5fa527810b49c5871e5607c6670b47
digest: shake256:6b6be27053039848cb5db09d992ddefd663ef49e56d91dea30e4a4f4fedc6d1886ce4b8e398310856ab5f3d2f97e99c6567359e5f4aec85f24cb4b61c27af113
- remote: buf.build
owner: viamrobotics
repository: goutils
Expand Down
12 changes: 12 additions & 0 deletions src/services/motion/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ describe('moveOnGlobe', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
};
const expectedMovementSensorName = {
namespace: 'viam',
type: 'component',
subtype: 'movementsensor',
name: 'myMovementsensor',
machinePartId: '',
};
const expectedMotionConfiguration = undefined;
const expectedExtra = {};
Expand Down Expand Up @@ -89,12 +91,14 @@ describe('moveOnGlobe', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
},
{
namespace: 'viam',
type: 'component',
subtype: 'movementsensor',
name: 'myMovementsensor',
machinePartId: '',
}
)
).resolves.toStrictEqual(testExecutionId);
Expand Down Expand Up @@ -133,12 +137,14 @@ describe('moveOnGlobe', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
};
const expectedMovementSensorName = {
namespace: 'viam',
type: 'component',
subtype: 'movementsensor',
name: 'myMovementsensor',
machinePartId: '',
};
const expectedMotionConfiguration = {
obstacleDetectorsList: [
Expand All @@ -148,12 +154,14 @@ describe('moveOnGlobe', () => {
type: 'service',
subtype: 'vision',
name: 'myVisionService',
machinePartId: '',
},
camera: {
namespace: 'viam',
type: 'component',
subtype: 'camera',
name: 'myCamera',
machinePartId: '',
},
},
],
Expand Down Expand Up @@ -219,6 +227,7 @@ describe('stopPlan', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
};
const expectedExtra = {};
const mock = vi
Expand All @@ -244,6 +253,7 @@ describe('stopPlan', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
};
const expectedExtra = { some: 'extra' };
const mock = vi
Expand Down Expand Up @@ -310,6 +320,7 @@ describe('getPlan', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
};
const expectedLastPlanOnly = false;
const expectedExecutionID = '';
Expand Down Expand Up @@ -340,6 +351,7 @@ describe('getPlan', () => {
type: 'component',
subtype: 'base',
name: 'myBase',
machinePartId: '',
};
const expectedLastPlanOnly = true;
const expectedExecutionID = 'some specific executionID';
Expand Down

0 comments on commit 6ac73ef

Please sign in to comment.