diff --git a/exercises/concept/factory-sensors/.meta/config.json b/exercises/concept/factory-sensors/.meta/config.json index 71e498c5a9..043296967e 100644 --- a/exercises/concept/factory-sensors/.meta/config.json +++ b/exercises/concept/factory-sensors/.meta/config.json @@ -4,7 +4,8 @@ ], "contributors": [ "SleeplessByte", - "junedev" + "junedev", + "themetar" ], "files": { "solution": [ diff --git a/exercises/concept/factory-sensors/factory-sensors.spec.js b/exercises/concept/factory-sensors/factory-sensors.spec.js index 01c185781b..9661decf7f 100644 --- a/exercises/concept/factory-sensors/factory-sensors.spec.js +++ b/exercises/concept/factory-sensors/factory-sensors.spec.js @@ -25,6 +25,10 @@ describe('reportOverheating', () => { expect(() => reportOverheating(null)).toThrow(ArgumentError); }); + test('should not throw if the temperature is 0°C', () => { + expect(() => reportOverheating(0)).not.toThrow(); + }); + test('should throw an OverheatingError if the temperature is 501°C', () => { expect(() => reportOverheating(501)).toThrow(OverheatingError);