mirror of https://github.com/coder/coder.git
16 lines
502 B
TypeScript
16 lines
502 B
TypeScript
import { screen } from "@testing-library/react"
|
|
import React from "react"
|
|
import { Workspace } from "./Workspace"
|
|
import { MockOrganization, MockProject, MockWorkspace, render } from "../../test_helpers"
|
|
|
|
describe("Workspace", () => {
|
|
it("renders", async () => {
|
|
// When
|
|
render(<Workspace organization={MockOrganization} project={MockProject} workspace={MockWorkspace} />)
|
|
|
|
// Then
|
|
const element = await screen.findByText(MockWorkspace.name)
|
|
expect(element).toBeDefined()
|
|
})
|
|
})
|