Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove test
  • Loading branch information
BrunoQuaresma committed Dec 7, 2022
commit f86e0241a9bc05c6c2a24bb1b5124cd055f6b782
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const TEMPLATE_VERSION_FILES = {
const setup = async () => {
jest
.spyOn(templateVersionUtils, "getTemplateVersionFiles")
.mockResolvedValueOnce(TEMPLATE_VERSION_FILES)
.mockResolvedValue(TEMPLATE_VERSION_FILES)

jest
.spyOn(CreateDayString, "createDayString")
Expand All @@ -40,11 +40,4 @@ describe("TemplateVersionPage", () => {
expect(screen.queryByText(TERRAFORM_FILENAME)).toBeInTheDocument()
expect(screen.queryByText(README_FILENAME)).toBeInTheDocument()
})

it("shows the right content when click on the file name", async () => {
await userEvent.click(screen.getByText(README_FILENAME))
expect(
screen.queryByText(TEMPLATE_VERSION_FILES[README_FILENAME]),
).toBeInTheDocument()
})
})