Skip to content

Commit 4ed9ff6

Browse files
committed
fix acceptance test
1 parent d695888 commit 4ed9ff6

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

src/acceptance.spec.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { pipeline, Writable } from 'stream'
1717
import { promisify } from 'util'
1818

1919
import { CucumberQueryStream, render } from '../test-utils/index.js'
20-
import { components } from './index.js'
20+
import { GherkinDocumentList, QueriesWrapper } from './index.js'
2121

2222
describe('acceptance tests', function () {
2323
this.timeout('30s')
@@ -41,14 +41,9 @@ describe('acceptance tests', function () {
4141
await runCucumber(supportCode, gherkinStream, gherkinQuery, cucumberQueryStream)
4242

4343
const { container } = render(
44-
<components.app.QueriesWrapper
45-
gherkinQuery={gherkinQuery}
46-
cucumberQuery={cucumberQuery}
47-
>
48-
<components.app.GherkinDocumentList
49-
gherkinDocuments={gherkinQuery.getGherkinDocuments()}
50-
/>
51-
</components.app.QueriesWrapper>
44+
<QueriesWrapper gherkinQuery={gherkinQuery} cucumberQuery={cucumberQuery}>
45+
<GherkinDocumentList gherkinDocuments={gherkinQuery.getGherkinDocuments()} />
46+
</QueriesWrapper>
5247
)
5348

5449
expect(container.textContent).to.not.eq(null)
@@ -91,11 +86,9 @@ describe('acceptance tests', function () {
9186
)
9287

9388
const { container } = render(
94-
<components.app.QueriesWrapper gherkinQuery={gherkinQuery} cucumberQuery={cucumberQuery}>
95-
<components.app.GherkinDocumentList
96-
gherkinDocuments={gherkinQuery.getGherkinDocuments()}
97-
/>
98-
</components.app.QueriesWrapper>
89+
<QueriesWrapper gherkinQuery={gherkinQuery} cucumberQuery={cucumberQuery}>
90+
<GherkinDocumentList gherkinDocuments={gherkinQuery.getGherkinDocuments()} />
91+
</QueriesWrapper>
9992
)
10093

10194
expect(container.textContent).not.to.eq(null)

0 commit comments

Comments
 (0)