From cc10af9fd9b80c9140eb1f36137babe94b8d5e35 Mon Sep 17 00:00:00 2001 From: Jimson Montederamos Date: Thu, 31 Aug 2023 18:12:33 +1200 Subject: [PATCH] test1 --- tests/carValueController.spec.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/carValueController.spec.ts b/tests/carValueController.spec.ts index e210924..ca64ed5 100644 --- a/tests/carValueController.spec.ts +++ b/tests/carValueController.spec.ts @@ -2,18 +2,18 @@ import { describe, it, expect } from "@jest/globals"; import { calculateCarValue } from "../src/services/carValueServices"; describe('Convert car model and year to a "Car Value"', () => { -// it("should calculate car value for valid input", () => { -// // Arrange -// const model = "Civic"; -// const year = 2014; -// const expected = 6614; - -// // Act -// const result = calculateCarValue(model, year); - -// // Assert -// expect(result).toBe(expected); -// }); + it("should calculate car value for valid input", () => { + // Arrange + const model = "Civic"; + const year = 2014; + const expected = 6614; + + // Act + const result = calculateCarValue(model, year); + + // Assert + expect(result).toBe(expected); + }); it("should calculate car value for model with space", () => { // Arrange