Skip to content

Commit 03b58c6

Browse files
committed
Adding type assertion to test for type change
1 parent e2bbe4d commit 03b58c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/billdetail.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe("BillDetails", () => {
162162
const readMoreButton = screen.getByRole("button", { name: "Read more.." })
163163
expect(readMoreButton).toBeInTheDocument
164164
fireEvent.click(readMoreButton)
165-
expect(screen.getByText(DocumentText)).toBeInTheDocument
165+
expect(screen.getByText(DocumentText!)).toBeInTheDocument
166166
})
167167

168168
// below test assumes mockBill contains a primary sponsor

0 commit comments

Comments
 (0)