From e1fbc08ac9861f5cbd611e6b005b66ee45227524 Mon Sep 17 00:00:00 2001 From: kevinuehara Date: Fri, 13 Sep 2024 15:39:50 -0300 Subject: [PATCH] fix: adusting test request by code review --- test/es-module/test-typescript.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/es-module/test-typescript.mjs b/test/es-module/test-typescript.mjs index 5eeb5ef88feaca..157008c21c325b 100644 --- a/test/es-module/test-typescript.mjs +++ b/test/es-module/test-typescript.mjs @@ -333,9 +333,7 @@ test('execute a TypeScript file with union types', async () => { ]); strictEqual(result.stderr, ''); - match(result.stdout, /Hello, TypeScript!/); - match(result.stdout, /admin/); - match(result.stdout, /Testing Partial Type/); + strictEqual(result.stdout, `{ name: 'Hello, TypeScript!' }\n{ role: 'admin', permission: 'all' }\n{\n foo: 'Testing Partial Type',\n bar: 42,\n zoo: true,\n metadata: undefined\n}\n`) strictEqual(result.code, 0); });