Skip to content

Commit 7525b91

Browse files
committed
add missing change detection calls
1 parent d1496d0 commit 7525b91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/specs/component.battle.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ describe('BattleComponent', () => {
7272
});
7373
it('should not be applied after we have just one count', () => {
7474
combatant1.stars.emit(456);
75+
fixture.detectChanges();
7576
expect(nativeElement.querySelector('.winner')).to.not.exist;
7677
});
7778
it('should be applied to combatant1 when count exceeds combatant2', () => {
@@ -91,6 +92,7 @@ describe('BattleComponent', () => {
9192
it('should not be applied when counts are equal', () => {
9293
combatant1.stars.emit(7);
9394
combatant2.stars.emit(7);
95+
fixture.detectChanges();
9496
expect(nativeElement.querySelector('.winner')).to.not.exist;
9597
});
9698
it('should be removed again if opponent becomes null', () => {

0 commit comments

Comments
 (0)