@@ -17,7 +17,7 @@ import { pipeline, Writable } from 'stream'
17
17
import { promisify } from 'util'
18
18
19
19
import { CucumberQueryStream , render } from '../test-utils/index.js'
20
- import { components } from './index.js'
20
+ import { GherkinDocumentList , QueriesWrapper } from './index.js'
21
21
22
22
describe ( 'acceptance tests' , function ( ) {
23
23
this . timeout ( '30s' )
@@ -41,14 +41,9 @@ describe('acceptance tests', function () {
41
41
await runCucumber ( supportCode , gherkinStream , gherkinQuery , cucumberQueryStream )
42
42
43
43
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 >
52
47
)
53
48
54
49
expect ( container . textContent ) . to . not . eq ( null )
@@ -91,11 +86,9 @@ describe('acceptance tests', function () {
91
86
)
92
87
93
88
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 >
99
92
)
100
93
101
94
expect ( container . textContent ) . not . to . eq ( null )
0 commit comments