Skip to content

Commit

Permalink
chore(lint): fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Oct 5, 2023
1 parent 7793854 commit dc1d87d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/SelectMenu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('SelectMenu', () => {
it('shows correct initial tab', () => {
const testInstance = renderRoot(<MenuWithTabs />)
// `findByProps` is a method on the renderer, not testing-library
// eslint-disable-next-line testing-library/await-async-query
// eslint-disable-next-line testing-library/await-async-queries
expect(testInstance.findByProps({'aria-selected': true}).props.children).toBe('Organization')
})

Expand All @@ -113,7 +113,7 @@ describe('SelectMenu', () => {
it('selected items have aria-checked', () => {
const testInstance = renderRoot(<BasicSelectMenu />)
// `findByProps` is a method on the renderer, not testing-library
// eslint-disable-next-line testing-library/await-async-query
// eslint-disable-next-line testing-library/await-async-queries
expect(testInstance.findByProps({'aria-checked': true}).props.children[1]).toBe('Primer Components bugs')
})

Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/Textarea.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Textarea', () => {
expect(textareaElement.disabled).toEqual(true)
expect(textareaElement).toHaveAttribute('disabled')

user.click(textareaElement)
await user.click(textareaElement)

expect(handleChange).not.toHaveBeenCalled()

Expand Down
1 change: 1 addition & 0 deletions src/drafts/MarkdownEditor/MarkdownEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const assertNotNull: <T>(t: T | null) => asserts t is T = t => expect(t).not.toB

const render = async (ui: React.ReactElement) => {
const result = _render(ui)
// eslint-disable-next-line testing-library/await-async-events
const user = userEvent.setup()

const getInput = () => result.getByRole('textbox') as HTMLTextAreaElement
Expand Down

0 comments on commit dc1d87d

Please sign in to comment.