Skip to content

Commit 4c24526

Browse files
committed
fix wrongly configured test case
1 parent d87c69d commit 4c24526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/number-input/number.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ describe("Number", () => {
152152
expect(component.value).toEqual(0);
153153
});
154154

155-
it("should decrement and set value to max if value - step is less than max", () => {
155+
it("should decrement and set value to max if value - step exceeds max", () => {
156156
fixture.detectChanges();
157-
buttonUp = fixture.debugElement.query(By.css(".up-icon")).nativeElement;
157+
buttonUp = fixture.debugElement.query(By.css(".down-icon")).nativeElement;
158158
component.value = 20;
159159
component.step = 2;
160160
component.max = 15;

0 commit comments

Comments
 (0)