Skip to content

Commit

Permalink
fixtest
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer committed Sep 13, 2023
1 parent 7a9214c commit 31d84d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/browser/modules/Stream/auto-exec-button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { fireEvent, render } from '@testing-library/react'
import React from 'react'

import { AutoExecCypherButton } from './auto-exec-button'
import { AutoExecButtonComponent } from './auto-exec-button'

const send = jest.fn()

Expand All @@ -28,7 +28,7 @@ describe('AutoExecButton', function () {
test('should display command with cmd char', () => {
// Given
const { getByText } = render(
<AutoExecCypherButton bus={{ send }} cmd="help params" />
<AutoExecButtonComponent bus={{ send }} cmd="help params" />
)

// Then
Expand All @@ -39,7 +39,7 @@ describe('AutoExecButton', function () {
test('should auto execute when clicked', () => {
// Given
const { getByText } = render(
<AutoExecCypherButton bus={{ send }} cmd="help params" />
<AutoExecButtonComponent bus={{ send }} cmd="help params" />
)

fireEvent.click(getByText(':help params'))
Expand All @@ -62,7 +62,7 @@ describe('AutoExecButton', function () {
test('supports any random cmd string', () => {
// Given
const { getByText } = render(
<AutoExecCypherButton bus={{ send }} cmd="foo bar" />
<AutoExecButtonComponent bus={{ send }} cmd="foo bar" />
)

fireEvent.click(getByText(':foo bar'))
Expand Down

0 comments on commit 31d84d2

Please sign in to comment.