Skip to content

Commit

Permalink
Merge pull request #407 from adobe/fix_HeaderBar_test
Browse files Browse the repository at this point in the history
Fix HeaderBar.test
  • Loading branch information
solimant authored Dec 11, 2023
2 parents a31ab30 + 91055b0 commit 16f47b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/__tests__/HeaderBar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@
*/

import React from "react"
import { Provider } from "@adobe/parliament-ui-components"
import { render } from "@testing-library/react"

import HeaderBar from "../HeaderBar"

// TODO: fix the `cannot read colorMode of undefined` error
describe.skip(`HeaderBar`, () => {
describe('HeaderBar', () => {
it(`renders header`, () => {
const testTitle = `Test Title`
const { getByText } = render(
<HeaderBar siteTitle={testTitle} forceMobile={false} />
<Provider>
<HeaderBar siteTitle={testTitle} forceMobile={false} />
</Provider>
)

const text = getByText(testTitle)
Expand Down

0 comments on commit 16f47b4

Please sign in to comment.