From 5d09179400abc104d9ff19b9d275428e886dc033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=84=95?= <2323666215@qq.com> Date: Mon, 21 Mar 2022 20:48:33 +0800 Subject: [PATCH] test(core): adjust expect #WIK-6050 --- packages/src/plugins/with-angular.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/src/plugins/with-angular.spec.ts b/packages/src/plugins/with-angular.spec.ts index d307dbee..55f0b0ad 100644 --- a/packages/src/plugins/with-angular.spec.ts +++ b/packages/src/plugins/with-angular.spec.ts @@ -306,6 +306,6 @@ const getCommonPath = (oldPath, newPath) => { const validKey = (moveNodeEditor, matches) => { for (const [path, key] of matches) { const [node] = Editor.node(moveNodeEditor, path); - expect(NODE_TO_KEY.get(node).id === key.id); + expect(NODE_TO_KEY.get(node)).toEqual(key); } };