Skip to content

Commit

Permalink
commented out test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimson Montederamos authored and Jimson Montederamos committed Aug 31, 2023
1 parent bb46f1e commit 2a4aa84
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/carValueController.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ describe('Convert car model and year to a "Car Value"', () => {
expect(result).toEqual(errorExpected);
});

// it('should return error for empty year', () => {
// // Arrange
// const model = "Prius";
// const year = "";
// const errorExpected = { error: "Model and year are required" };
it('should return error for empty year', () => {
// Arrange
const model = "Prius";
const year = "";
const errorExpected = { error: "Model and year are required" };

// // Act
// const result = calculateCarValue(model, year);
// Act
const result = calculateCarValue(model, year);

// // Assert
// expect(result).toEqual(errorExpected);
// });
// Assert
expect(result).toEqual(errorExpected);
});

it("should return error for future year", () => {
// Arrange
Expand Down Expand Up @@ -119,16 +119,16 @@ describe('Convert car model and year to a "Car Value"', () => {
expect(result).toEqual(errorExpected);
});

// it('should return error for wrong data type for year', () => {
// // Arrange
// const model = "Camaro";
// const year = "twenty twenty";
// const errorExpected = { error: "Invalid year" };
it('should return error for wrong data type for year', () => {
// Arrange
const model = "Camaro";
const year = "twenty twenty";
const errorExpected = { error: "Invalid year" };

// // Act
// const result = calculateCarValue(model, year);
// Act
const result = calculateCarValue(model, year);

// // Assert
// expect(result).toEqual(errorExpected);
// });
// Assert
expect(result).toEqual(errorExpected);
});
});

0 comments on commit 2a4aa84

Please sign in to comment.