From eff532bcf5b003dcbd1022cb6cd180bb0775861e Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 6 Dec 2023 21:58:06 -0500 Subject: [PATCH] update test data --- frontend/src/components/history/utils.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/history/utils.test.ts b/frontend/src/components/history/utils.test.ts index 340d0d0..89041bf 100644 --- a/frontend/src/components/history/utils.test.ts +++ b/frontend/src/components/history/utils.test.ts @@ -4,21 +4,21 @@ import { extractHistoryTree } from "./utils"; const data = [ { type: "ai_edit" as const, - code: "edit with better icons and red text", + code: "3. edit with better icons and red text", inputs: { prompt: "make text red", }, }, { type: "ai_edit" as const, - code: "edit with better icons", + code: "2. edit with better icons", inputs: { prompt: "use better icons", }, }, { type: "ai_create" as const, - code: "create", + code: "1. create", inputs: { image_url: "", }, @@ -27,12 +27,12 @@ const data = [ test("should only include history from this point onward", () => { expect(extractHistoryTree(data, 0)).toEqual([ - "create", + "1. create", "use better icons", - "edit with better icons", + "2. edit with better icons", "make text red", - "edit with better icons and red text", + "3. edit with better icons and red text", ]); - expect(extractHistoryTree(data, 2)).toEqual(["create"]); + expect(extractHistoryTree(data, 2)).toEqual(["1. create"]); });