Skip to content

Commit

Permalink
Remove feature flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan committed Dec 19, 2024
1 parent f54965f commit 2a125f4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/react/src/__tests__/Spinner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type {SpinnerProps} from '..'
import {Spinner} from '..'
import {behavesAsComponent, checkExports} from '../utils/testing'
import {render as HTMLRender, screen} from '@testing-library/react'
import {FeatureFlags} from '../FeatureFlags'

describe('Spinner', () => {
behavesAsComponent({
Expand All @@ -20,21 +19,7 @@ describe('Spinner', () => {

it('should support `className` on the outermost element', () => {
const Element = () => <Spinner className={'test-class-name'} />
const FeatureFlagElement = () => {
return (
<FeatureFlags
flags={{
primer_react_css_modules_team: true,
primer_react_css_modules_staff: true,
primer_react_css_modules_ga: true,
}}
>
<Element />
</FeatureFlags>
)
}
expect(HTMLRender(<Element />).container.firstChild?.firstChild).toHaveClass('test-class-name')
expect(HTMLRender(<FeatureFlagElement />).container.firstChild?.firstChild).toHaveClass('test-class-name')
})

it('should label the spinner with default loading text', async () => {
Expand Down

0 comments on commit 2a125f4

Please sign in to comment.