github.com/quickfeed/quickfeed@v0.0.0-20240507093252-ed8ca812a09c/public/src/__tests__/CourseCreationInfo.test.tsx (about)

     1  import CourseCreationInfo from "../components/admin/CourseCreationInfo"
     2  import React from "react"
     3  import { render } from "@testing-library/react"
     4  
     5  
     6  describe("Title should be equal to", () => {
     7  
     8      it('Renders titles children', () => {
     9          const title = "Create Course"
    10          const wrapped = render(<CourseCreationInfo />)
    11          const element = wrapped.getByRole("heading")
    12          expect(element.textContent).toEqual(title)
    13      })
    14  })