Skip to content

Commit

Permalink
name fix and remove behaveascomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolinisoup committed Jul 28, 2023
1 parent 60c533c commit 5b62ff8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/UnderlineNav/UnderlineNav.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '@primer/octicons-react'

import {UnderlineNav} from '.'
import {behavesAsComponent, checkExports, checkStoriesForAxeViolations} from '../utils/testing'
import {checkExports, checkStoriesForAxeViolations} from '../utils/testing'

// window.matchMedia() is not implemented by JSDOM so we have to create a mock:
// https://jestjs.io/docs/manual-mocks#mocking-methods-which-are-not-implemented-in-jsdom
Expand Down Expand Up @@ -72,13 +72,7 @@ const ResponsiveUnderlineNav = ({
}

describe('UnderlineNav', () => {
behavesAsComponent({
Component: UnderlineNav,
options: {skipAs: true, skipSx: true},
toRender: () => <ResponsiveUnderlineNav />,
})

checkExports('UnderlineNav2', {
checkExports('UnderlineNav', {
default: undefined,
UnderlineNav,
})
Expand Down Expand Up @@ -191,4 +185,4 @@ describe('Keyboard Navigation', () => {
})
})

checkStoriesForAxeViolations('UnderlineNav2.examples', '../UnderlineNav2/')
checkStoriesForAxeViolations('UnderlineNav.examples', '../UnderlineNav/')

0 comments on commit 5b62ff8

Please sign in to comment.