@@ -24,14 +24,16 @@ describe('stringFixtureSync & litFixtureSync & fixture & litFixture', () => {
24
24
` ,
25
25
) ,
26
26
] . forEach ( testElement ) ;
27
- ( await Promise . all ( [
28
- stringFixture ( '<test-component>Text content</test-component>' ) ,
29
- litFixture (
30
- html `
31
- < test-component > Text content</ test-component >
32
- ` ,
33
- ) ,
34
- ] ) ) . forEach ( testElement ) ;
27
+ (
28
+ await Promise . all ( [
29
+ stringFixture ( '<test-component>Text content</test-component>' ) ,
30
+ litFixture (
31
+ html `
32
+ < test-component > Text content</ test-component >
33
+ ` ,
34
+ ) ,
35
+ ] )
36
+ ) . forEach ( testElement ) ;
35
37
} ) ;
36
38
37
39
it ( 'wraps element into a div attached to the body' , async ( ) => {
@@ -50,14 +52,16 @@ describe('stringFixtureSync & litFixtureSync & fixture & litFixture', () => {
50
52
` ,
51
53
) ,
52
54
] . forEach ( testElement ) ;
53
- ( await Promise . all ( [
54
- stringFixture ( '<test-component></test-component>' ) ,
55
- litFixture (
56
- html `
57
- < test-component > </ test-component >
58
- ` ,
59
- ) ,
60
- ] ) ) . forEach ( testElement ) ;
55
+ (
56
+ await Promise . all ( [
57
+ stringFixture ( '<test-component></test-component>' ) ,
58
+ litFixture (
59
+ html `
60
+ < test-component > </ test-component >
61
+ ` ,
62
+ ) ,
63
+ ] )
64
+ ) . forEach ( testElement ) ;
61
65
} ) ;
62
66
63
67
it ( 'allows to create several fixtures in one test' , async ( ) => {
@@ -83,20 +87,22 @@ describe('stringFixtureSync & litFixtureSync & fixture & litFixture', () => {
83
87
` ,
84
88
) ,
85
89
] . forEach ( testElement ) ;
86
- ( await Promise . all ( [
87
- stringFixture ( '<test-component></test-component>' ) ,
88
- stringFixture ( '<test-component></test-component>' ) ,
89
- litFixture (
90
- html `
91
- < test-component > </ test-component >
92
- ` ,
93
- ) ,
94
- litFixture (
95
- html `
96
- < test-component > </ test-component >
97
- ` ,
98
- ) ,
99
- ] ) ) . forEach ( testElement ) ;
90
+ (
91
+ await Promise . all ( [
92
+ stringFixture ( '<test-component></test-component>' ) ,
93
+ stringFixture ( '<test-component></test-component>' ) ,
94
+ litFixture (
95
+ html `
96
+ < test-component > </ test-component >
97
+ ` ,
98
+ ) ,
99
+ litFixture (
100
+ html `
101
+ < test-component > </ test-component >
102
+ ` ,
103
+ ) ,
104
+ ] )
105
+ ) . forEach ( testElement ) ;
100
106
} ) ;
101
107
102
108
it ( 'handles self closing tags' , async ( ) => {
@@ -114,14 +120,16 @@ describe('stringFixtureSync & litFixtureSync & fixture & litFixture', () => {
114
120
` ,
115
121
) ,
116
122
] . forEach ( testElement ) ;
117
- ( await Promise . all ( [
118
- stringFixture ( '<test-component/>' ) ,
119
- litFixture (
120
- html `
121
- < test-component />
122
- ` ,
123
- ) ,
124
- ] ) ) . forEach ( testElement ) ;
123
+ (
124
+ await Promise . all ( [
125
+ stringFixture ( '<test-component/>' ) ,
126
+ litFixture (
127
+ html `
128
+ < test-component />
129
+ ` ,
130
+ ) ,
131
+ ] )
132
+ ) . forEach ( testElement ) ;
125
133
} ) ;
126
134
127
135
it ( 'always returns first child element ignoring whitespace and other elements' , async ( ) => {
@@ -141,16 +149,18 @@ describe('stringFixtureSync & litFixtureSync & fixture & litFixture', () => {
141
149
< div > </ div >
142
150
` ) ,
143
151
] . forEach ( testElement ) ;
144
- ( await Promise . all ( [
145
- stringFixture ( `
146
- <test-component></test-component>
147
- <div></div>
148
- ` ) ,
149
- litFixture ( html `
152
+ (
153
+ await Promise . all ( [
154
+ stringFixture ( `
150
155
<test-component></test-component>
151
156
<div></div>
152
157
` ) ,
153
- ] ) ) . forEach ( testElement ) ;
158
+ litFixture ( html `
159
+ < test-component > </ test-component >
160
+ < div > </ div >
161
+ ` ) ,
162
+ ] )
163
+ ) . forEach ( testElement ) ;
154
164
} ) ;
155
165
156
166
it ( 'will wait for one frame' , async ( ) => {
0 commit comments