Skip to content

Commit

Permalink
chore: get rid of ambiguous test naming #2224
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Feb 9, 2024
1 parent 6712a47 commit b953544
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ describe('Button.tsx', () => {
expect(container.querySelector('i[data-icon-name="ChevronDown"]') as HTMLLIElement).not.toBeInTheDocument()
})

it('Does not set args and calls sync on click when command has download link specified', () => {
it('Does not set args or calls sync on click when command has download link specified', () => {
const
btnCommandDownloadProps: Buttons = {
items: [{
Expand Down
2 changes: 1 addition & 1 deletion ui/src/card_menu.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('CardMenu.tsx', () => {
expect(window.location.hash).toBe('#card')
})

it('Does not set args and calls sync on click when command has download link specified', () => {
it('Does not set args or calls sync on click when command has download link specified', () => {
const pushMock = jest.fn()
wave.push = pushMock
card.state.commands = [{ name: 'card', download: true, path, value: 'value' }]
Expand Down
2 changes: 1 addition & 1 deletion ui/src/toolbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Toolbar.tsx', () => {
expect(window.location.hash).toBe(hashName)
})

it('Does not set args and calls sync on click when command has download link specified', () => {
it('Does not set args or calls sync on click when command has download link specified', () => {
const value = 'value'
const { getByText } = render(<Toolbar {...{ ...toolbarProps, state: { items: [{ name, value, label, path, download: true }] } }} />)
fireEvent.click(getByText(label))
Expand Down

0 comments on commit b953544

Please sign in to comment.