Skip to content

Commit

Permalink
test(button group): take into account new timer from debounce (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg authored Jun 16, 2021
1 parent 1b3c809 commit daadbe5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe('Component: NbButtonGroup', () => {
fixture.detectChanges();
flush();
fixture.detectChanges();
tick();
expect(toggleButtons.last.status).toEqual(buttonGroup.status);
}));

Expand All @@ -112,6 +113,7 @@ describe('Component: NbButtonGroup', () => {
fixture.detectChanges();
flush();
fixture.detectChanges();
tick();
expect(toggleButtons.last.size).toEqual(buttonGroup.size);
}));

Expand All @@ -120,6 +122,7 @@ describe('Component: NbButtonGroup', () => {
fixture.detectChanges();
flush();
fixture.detectChanges();
tick();
expect(toggleButtons.last.appearance).toEqual(buttonGroup.appearance);
}));

Expand All @@ -128,6 +131,7 @@ describe('Component: NbButtonGroup', () => {
fixture.detectChanges();
flush();
fixture.detectChanges();
tick();
expect(toggleButtons.last.shape).toEqual(buttonGroup.shape);
}));

Expand All @@ -137,6 +141,7 @@ describe('Component: NbButtonGroup', () => {
fixture.detectChanges();
flush();
fixture.detectChanges();
tick();
expect(toggleButtons.last.disabled).toEqual(true);
}));

Expand Down

0 comments on commit daadbe5

Please sign in to comment.