diff --git a/src/processors/cutOrder/cutOrder.test.ts b/src/processors/cutOrder/cutOrder.test.ts index 32bf668..868ed03 100644 --- a/src/processors/cutOrder/cutOrder.test.ts +++ b/src/processors/cutOrder/cutOrder.test.ts @@ -55,7 +55,61 @@ test('cutOrderTest', async () => { input, params } - await cutOrderProc.exec(context) + + let demo = { + "input": { + "boardWidth": 1220, + "boardLength": 2440, + "gap": 6, + "blocks": [ + { + "id": "1905521077598027776", + "width": 600, + "length": 400, + "waveType": 0, + "x": 3, + "y": 3 + }, + { + "id": "1905521077635776512", + "width": 600, + "length": 400, + "waveType": 0, + "x": 404, + "y": 3 + }, + { + "id": "1905521077656748032", + "width": 600, + "length": 400, + "waveType": 0, + "x": 805, + "y": 3 + }, + { + "id": "1905521077681913856", + "width": 600, + "length": 400, + "waveType": 0, + "x": 1206, + "y": 3 + }, + { + "id": "1905521077707079680", + "width": 600, + "length": 400, + "waveType": 0, + "x": 1607, + "y": 3 + } + ] + }, + "params": { + "name": "", + "version": "1.0.0" + } + } + await cutOrderProc.exec(demo) // 将在context的output中显示结果 - console.log(context); + console.log(demo); }) \ No newline at end of file