diff --git a/exercises/concept/factory-sensors/.meta/config.json b/exercises/concept/factory-sensors/.meta/config.json index 043296967e..50e42d1b4c 100644 --- a/exercises/concept/factory-sensors/.meta/config.json +++ b/exercises/concept/factory-sensors/.meta/config.json @@ -5,7 +5,8 @@ "contributors": [ "SleeplessByte", "junedev", - "themetar" + "themetar", + "orimdominic" ], "files": { "solution": [ diff --git a/exercises/concept/factory-sensors/factory-sensors.spec.js b/exercises/concept/factory-sensors/factory-sensors.spec.js index 8fb7e2546c..5ecbd96202 100644 --- a/exercises/concept/factory-sensors/factory-sensors.spec.js +++ b/exercises/concept/factory-sensors/factory-sensors.spec.js @@ -8,10 +8,18 @@ import { } from './factory-sensors'; describe('checkHumidityLevel', () => { + test('should throw if the humidity percentage is 71', () => { + expect(() => checkHumidityLevel(71)).toThrow(); + }); + test('should throw if the humidity percentage is 100', () => { expect(() => checkHumidityLevel(100)).toThrow(); }); + test('should not throw if the humidity level is 70', () => { + expect(() => checkHumidityLevel(70)).not.toThrow(); + }); + test('should not throw if the humidity level is 53', () => { expect(() => checkHumidityLevel(53)).not.toThrow(); });