From aa1bc23e73a9aeb9d6694d9cdc19194c327bb948 Mon Sep 17 00:00:00 2001 From: takejohn Date: Sat, 13 Dec 2025 19:15:29 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=AB=E3=81=8A?= =?UTF-8?q?=E3=81=84=E3=81=A6AiScript=E3=81=AE=E5=80=A4=E4=BB=A5=E5=A4=96?= =?UTF-8?q?=E3=81=ABeq=E9=96=A2=E6=95=B0=E3=82=92=E9=81=A9=E7=94=A8?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/syntax.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/syntax.ts b/test/syntax.ts index 72dcf190..9aa17481 100644 --- a/test/syntax.ts +++ b/test/syntax.ts @@ -980,14 +980,14 @@ describe('meta', () => { const res = getMeta(` ### { a: 1, b: 2, c: 3, } `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ [null, { a: 1, b: 2, c: 3, }] ])); - eq(res!.get(null), { + expect(res!.get(null)).toStrictEqual({ a: 1, b: 2, c: 3, @@ -999,7 +999,7 @@ describe('meta', () => { const res = getMeta(` ### x "hoge" `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ ['x', 'hoge'] ])); }); @@ -1010,7 +1010,7 @@ describe('meta', () => { const res = getMeta(` ### x 42 `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ ['x', 42] ])); }); @@ -1021,7 +1021,7 @@ describe('meta', () => { const res = getMeta(` ### x true `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ ['x', true] ])); }); @@ -1032,7 +1032,7 @@ describe('meta', () => { const res = getMeta(` ### x null `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ ['x', null] ])); }); @@ -1043,7 +1043,7 @@ describe('meta', () => { const res = getMeta(` ### x [1, 2, 3] `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ ['x', [1, 2, 3]] ])); }); @@ -1066,7 +1066,7 @@ describe('meta', () => { const res = getMeta(` ### x { a: 1, b: 2, c: 3, } `); - eq(res, new Map([ + expect(res).toStrictEqual(new Map([ ['x', { a: 1, b: 2,