[update] update show details test case

Signed-off-by: Jithen Shriyan <shriyanjithen@gmail.com>
This commit is contained in:
Jithen Shriyan
2024-01-22 16:28:38 -05:00
parent 39579f03b7
commit 6fc1ed6b01
@@ -100,7 +100,7 @@ describe('<ErrorPage/>', () => {
);
});
it('should render with stack trace if stack is provided', async () => {
it('should render show details if stack is provided', async () => {
const { getByText } = await renderInTestApp(
<ErrorPage
status="500"
@@ -108,6 +108,6 @@ describe('<ErrorPage/>', () => {
stack="this is my stack trace!"
/>,
);
expect(getByText(/this is my stack trace!/i)).toBeInTheDocument();
expect(getByText(/Show more details/i)).toBeInTheDocument();
});
});