Skip to content

Commit

Permalink
test: remove dead unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dexturr committed Jun 5, 2024
1 parent 03485eb commit ab6a3ab
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
import { render, screen } from '@testing-library/react'

import { locators as dataTableLocators } from '../../../data-table'
import { locators, Submission, SubmissionView } from '.'
import { Submission } from '.'

describe('SubmissionReceipt', () => {
it('renders nothing if the transaction is an iceberg order', () => {
const { container } = render(
<Submission
transaction={{
orderSubmission: {
icebergOpts: {}
}
}}
/>
)
expect(container).toBeEmptyDOMElement()
})
it('renders order table and badges', () => {
// 1118-ORDS-001 I can see the order table
// 1118-ORDS-002 I can see any relevant order badges
Expand All @@ -33,19 +21,4 @@ describe('SubmissionReceipt', () => {
expect(referenceRow).toHaveTextContent('foo')
expect(screen.getByText('Post only')).toBeVisible()
})
it('submission view renders iceberg message if order type is iceberg', () => {
render(
<SubmissionView
orderSubmission={{
icebergOpts: {
displayQty: '1',
totalQty: '2'
}
}}
/>
)
expect(screen.getByTestId(locators.icebergMessage)).toHaveTextContent(
'Iceberg Order, see raw JSON for more information'
)
})
})

0 comments on commit ab6a3ab

Please sign in to comment.