From 033ffe922f1fac55c4b4e64bf16bcc1e36d10263 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Thu, 1 Feb 2024 04:38:48 +0800 Subject: [PATCH] test: fix unit test --- tools/helper/tests/node/text.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/helper/tests/node/text.spec.ts b/tools/helper/tests/node/text.spec.ts index abc28e452e..4fe1ad466f 100644 --- a/tools/helper/tests/node/text.spec.ts +++ b/tools/helper/tests/node/text.spec.ts @@ -28,7 +28,7 @@ describe('getPageText', async () => { expect(text).toMatchSnapshot(path) if (path === '/markdown.html') { - expect(text).not.toContain('console.log(foo(5));') + expect(text).not.toContain('console.log(foo(5))') expect(text).not.toContain('table text') } }) @@ -51,7 +51,7 @@ describe('getPageText', async () => { if (path === '/markdown.html') { expect(text).toContain('Create a list') expect(text).toContain('Integer molestie lorem at massa') - expect(text).toContain('console.log(foo(5));') + expect(text).toContain('console.log(foo(5))') expect(text).toContain('table text') } }) @@ -64,7 +64,7 @@ describe('getPageText', async () => { if (path === '/markdown.html') { expect(text).not.toContain('Create a list') expect(text).not.toContain('Integer molestie lorem at massa') - expect(text).not.toContain('console.log(foo(5));') + expect(text).not.toContain('console.log(foo(5))') expect(text).not.toContain('table text') } },