diff --git a/src/test/temperature.test.ts b/src/test/temperature.test.ts index 3f58906..6e82d9c 100644 --- a/src/test/temperature.test.ts +++ b/src/test/temperature.test.ts @@ -1,5 +1,5 @@ import { describe, it, expect } from "vitest"; -import { isOverheating } from "../temperature"; +import { isOverheating, isZero} from "../temperature"; describe("isOverheating", () => { it("returns true if temp is above 70", () => { @@ -10,3 +10,13 @@ describe("isOverheating", () => { expect(isOverheating(70)).toBe(false); }); }); + +describe("isZero", () => { + it("returns true if temp is 0", () => { + expect(isZero(0)).toBe(true); + }); + + it("returns false if temp is 0", () => { + expect(isZero(5)).toBe(false); + }); +}); \ No newline at end of file