From f093a65940806728e5edb0597d9dbdc796375cde Mon Sep 17 00:00:00 2001 From: Will Chen Date: Mon, 14 Apr 2025 16:03:17 -0700 Subject: [PATCH] fix chat stream handlers test --- src/__tests__/chat_stream_handlers.test.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/__tests__/chat_stream_handlers.test.ts b/src/__tests__/chat_stream_handlers.test.ts index a729095..fa74284 100644 --- a/src/__tests__/chat_stream_handlers.test.ts +++ b/src/__tests__/chat_stream_handlers.test.ts @@ -396,8 +396,8 @@ describe("getDyadRenameTags", () => { it("should return an array of dyad-rename tags", () => { const result = getDyadRenameTags( - ` - ` + ` + ` ); expect(result).toEqual([ { @@ -417,8 +417,8 @@ describe("getDyadDeleteTags", () => { it("should return an array of dyad-delete paths", () => { const result = getDyadDeleteTags( - ` - ` + ` + ` ); expect(result).toEqual([ "src/components/Analytics.jsx", @@ -588,7 +588,7 @@ describe("processFullResponse", () => { vi.mocked(fs.mkdirSync).mockImplementation(() => undefined); vi.mocked(fs.renameSync).mockImplementation(() => undefined); - const response = ``; + const response = ``; const result = await processFullResponseActions(response, 1, { chatSummary: undefined, @@ -620,7 +620,7 @@ describe("processFullResponse", () => { // Set up the mock to return false for existsSync vi.mocked(fs.existsSync).mockReturnValue(false); - const response = ``; + const response = ``; const result = await processFullResponseActions(response, 1, { chatSummary: undefined, @@ -637,7 +637,7 @@ describe("processFullResponse", () => { vi.mocked(fs.existsSync).mockReturnValue(true); vi.mocked(fs.unlinkSync).mockImplementation(() => undefined); - const response = ``; + const response = ``; const result = await processFullResponseActions(response, 1, { chatSummary: undefined, @@ -659,7 +659,7 @@ describe("processFullResponse", () => { // Set up the mock to return false for existsSync vi.mocked(fs.existsSync).mockReturnValue(false); - const response = ``; + const response = ``; const result = await processFullResponseActions(response, 1, { chatSummary: undefined, @@ -681,8 +681,8 @@ describe("processFullResponse", () => { const response = ` import React from 'react'; export default () =>
New
;
- - + + `; const result = await processFullResponseActions(response, 1, {