From b09ac98b56e4861dc1a6c8acec7a8d8b14b2b0e7 Mon Sep 17 00:00:00 2001 From: lixiang <504331699@qq.com> Date: Mon, 4 Aug 2025 17:16:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/processors/cutOrder/cutOrder.test.ts | 58 +++++++++++++++++++++++- 1 file changed, 56 insertions(+), 2 deletions(-) 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