From bae113160152b13d21643129b0b7e7a73fd426d1 Mon Sep 17 00:00:00 2001 From: Peter Marsh Date: Mon, 25 Mar 2024 10:41:33 +0000 Subject: [PATCH] adds frame for testing for win condition in chatController --- .../test/unit/controller/chatController.test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/backend/test/unit/controller/chatController.test.ts b/backend/test/unit/controller/chatController.test.ts index 22380b75c..b13ac0a78 100644 --- a/backend/test/unit/controller/chatController.test.ts +++ b/backend/test/unit/controller/chatController.test.ts @@ -732,6 +732,20 @@ describe('handleChatToGPT unit tests', () => { expect(history).toEqual(expectedHistory); }); }); + + describe('winning', () => { + test('Given win condition met THEN level is won', () => { + expect(true).toBe(true); + }); + + test('Given win condition met AND reply is blocked THEN level is not won', () => { + expect(true).toBe(true); + }); + + test('Given win condition met AND openAI error THEN level is won', () => { + expect(true).toBe(true); + }); + }); }); describe('handleAddInfoToChatHistory', () => {