Skip to content

Commit

Permalink
stories to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Apr 13, 2024
1 parent 1f97d37 commit da5afe2
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/Atomic/CodeEditor/CodeEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,4 @@ describe('<CodeEditor>', () => {

expect(asFragment()).toMatchSnapshot()
})

it('displays placeholder text when value is empty', () => {
const { getByText, asFragment } = render(<CodeEditor placeholderText='Placeholder' value='' />)
expect(getByText('Placeholder')).toBeInTheDocument()

expect(asFragment()).toMatchSnapshot()
})

it('does not display placeholder text when value is not empty', () => {
const { queryByText } = render(<CodeEditor placeholderText='Placeholder' value='Some value' />)
expect(queryByText('Placeholder')).not.toBeInTheDocument()
})
})

0 comments on commit da5afe2

Please sign in to comment.