From ae365b6951ff3b5ec3ceb38ee43c1d9e2b4ef31f Mon Sep 17 00:00:00 2001 From: Jansen Kantor Date: Wed, 5 Nov 2025 15:49:26 -0500 Subject: [PATCH] test: add test coverage --- src/containers/ResponseDisplay/index.test.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/containers/ResponseDisplay/index.test.jsx b/src/containers/ResponseDisplay/index.test.jsx index 030b3b8..47fe2f1 100644 --- a/src/containers/ResponseDisplay/index.test.jsx +++ b/src/containers/ResponseDisplay/index.test.jsx @@ -107,6 +107,18 @@ describe('ResponseDisplay', () => { const textContents = container.querySelectorAll('.response-display-text-content'); expect(textContents).toHaveLength(0); }); + + it('displays single prompt when only one prompt', () => { + render(); + expect(screen.queryByTestId('prompt-single')).toBeInTheDocument(); + expect(screen.queryByTestId('prompt-multiple')).not.toBeInTheDocument(); + }); + + it('displays multiple prompts when there are multiple prompts', () => { + render(); + expect(screen.queryByTestId('prompt-single')).not.toBeInTheDocument(); + expect(screen.queryAllByTestId('prompt-multiple')).toHaveLength(2); + }); }); describe('mapStateToProps', () => {