Skip to content

Commit

Permalink
adds frame for testing for win condition in chatController
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarsh-scottlogic committed Mar 25, 2024
1 parent bb66aa6 commit bae1131
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions backend/test/unit/controller/chatController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit bae1131

Please sign in to comment.