Skip to content

Commit

Permalink
fix fex
Browse files Browse the repository at this point in the history
  • Loading branch information
denisbochka committed Nov 14, 2023
1 parent da3ddbd commit 5cfd688
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rpgsaga/saga/tests/car.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ describe(`Car methods test`, () => {
const car1 = new Car(2000, 150, "95", `Toyota`);
try {
car1.speed = -100;
} catch (error){
car1.speed =-70;
} catch (error) {
car1.speed = -70;
}
expect(car1.speed).toEqual(-70);
expect(car1.speed).toEqual(-70);
});
it(`Set too high car speed`, () => {
const car1 = new Car(2000, 150, "95", `Toyota`);
Expand All @@ -36,7 +36,6 @@ describe(`Car methods test`, () => {
} catch (error) {
car1.speed = 150;
}
;
expect(car1.speed).toEqual(150);
});
});

0 comments on commit 5cfd688

Please sign in to comment.