Skip to content

Commit f63270e

Browse files
committed
Add initial test case
1 parent 764acb8 commit f63270e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { render, screen } from "@testing-library/react"
2+
import React from "react"
3+
import { Workspace } from "./Workspace"
4+
import { MockWorkspace } from "../../test_helpers"
5+
6+
describe("Workspace", () => {
7+
it("renders", async () => {
8+
// When
9+
render(<Workspace workspace={MockWorkspace} />)
10+
11+
// Then
12+
const element = await screen.findByText(MockWorkspace.name)
13+
expect(element).toBeDefined()
14+
})
15+
})

0 commit comments

Comments
 (0)