@@ -163,7 +163,7 @@ describe(rxState, () => {
163
163
expect ( count ( ) ) . toBe ( 2 ) ;
164
164
} ) ;
165
165
166
- it ( 'should connect a signal to a key' , ( ) => {
166
+ it ( 'should connect a signal to a key' , async ( ) => {
167
167
const counterInput = signal ( 1337 ) ;
168
168
const { component, fixture } = setupComponent < { count : number } > (
169
169
( { connect } ) => {
@@ -173,6 +173,8 @@ describe(rxState, () => {
173
173
) ;
174
174
const state = component . state ;
175
175
176
+ fixture . detectChanges ( ) ;
177
+ // TODO @edbzn : Remove detecting changes twice when we have a better solution
176
178
fixture . detectChanges ( ) ;
177
179
178
180
expect ( state . get ( 'count' ) ) . toBe ( 1337 ) ;
@@ -198,6 +200,8 @@ describe(rxState, () => {
198
200
) ;
199
201
const state = component . state ;
200
202
203
+ fixture . detectChanges ( ) ;
204
+ // TODO @edbzn : Remove detecting changes twice when we have a better solution
201
205
fixture . detectChanges ( ) ;
202
206
203
207
expect ( state . get ( 'count' ) ) . toBe ( 4 ) ;
@@ -221,6 +225,8 @@ describe(rxState, () => {
221
225
) ;
222
226
const state = component . state ;
223
227
228
+ fixture . detectChanges ( ) ;
229
+ // TODO @edbzn : Remove detecting changes twice when we have a better solution
224
230
fixture . detectChanges ( ) ;
225
231
226
232
expect ( state . get ( 'count' ) ) . toBe ( 1337 ) ;
@@ -325,6 +331,7 @@ function setupComponent<State extends { count: number }>(
325
331
} ) ;
326
332
327
333
const fixture = TestBed . createComponent ( TestComponent ) ;
334
+ // fixture.detectChanges()
328
335
329
336
return {
330
337
fixture,
0 commit comments