import { mockRobot } from '../../robot-api/__fixtures__' ; import type { Method } from '../../robot-api/types' ; export const mockMoveSuccessMeta = { method : 'POST' as Method , path : '/robot/move' , ok : true , status : 200 , } ; export const mockMoveSuccess = { ... mockMoveSuccessMeta , host : mockRobot , body : { message : 'Move complete. New position: [1, 2, 3]' } , } ; export const mockMoveFailureMeta = { method : 'POST' as Method , path : '/robot/move' , ok : false , status : 500 , } ; export const mockMoveFailure = { ... mockMoveFailureMeta , host : mockRobot , body : { message : 'AH' } , } ; export const mockPositions = { change_pipette : { target : 'mount' , left : [ 325 , 40 , 30 ] , right : [ 65 , 40 , 30 ] , } , attach_tip : { target : 'pipette' , point : [ 200 , 90 , 150 ] , } , } ; export const mockFetchPositionsSuccessMeta = { method : 'GET' as Method , path : '/robot/positions' , ok : true , status : 200 , } ; export const mockFetchPositionsSuccess = { ... mockFetchPositionsSuccessMeta , host : mockRobot , body : { positions : mockPositions , } , } ; export const mockFetchPositionsFailureMeta = { method : 'GET' as Method , path : '/robot/positions' , ok : false , status : 500 , } ; export const mockFetchPositionsFailure = { ... mockFetchPositionsFailureMeta , host : mockRobot , body : { message : 'AH' } , } ; export const mockDisengageMotorsSuccessMeta = { method : 'POST' as Method , path : '/motors/disengage' , ok : true , status : 200 , } ; export const mockDisengageMotorsSuccess = { ... mockDisengageMotorsSuccessMeta , host : mockRobot , body : { message : 'Disengaged axes: [a, b, c, x, y, z]' } , } ; export const mockDisengageMotorsFailureMeta = { method : 'POST' as Method , path : '/motors/disengage' , ok : false , status : 500 , } ; export const mockDisengageMotorsFailure = { ... mockDisengageMotorsFailureMeta , host : mockRobot , body : { message : 'AH' } , } ;