From 90389ea910d9b8971602b573fe194e994c7ecefa Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 28 Oct 2015 09:56:50 -0700 Subject: [PATCH] [Time Conductor] Increase test specificity Explicitly check for boolean values (not just truthy/falsy values) per feedback from code review, nasa/openmctweb#204. --- platform/commonUI/formats/test/UTCTimeFormatSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/commonUI/formats/test/UTCTimeFormatSpec.js b/platform/commonUI/formats/test/UTCTimeFormatSpec.js index 57f84fed87..d55a8a9507 100644 --- a/platform/commonUI/formats/test/UTCTimeFormatSpec.js +++ b/platform/commonUI/formats/test/UTCTimeFormatSpec.js @@ -41,8 +41,8 @@ define( }); it("validates time inputs", function () { - expect(format.validate("1977-05-25 11:21:22")).toBeTruthy(); - expect(format.validate("garbage text")).toBeFalsy(); + expect(format.validate("1977-05-25 11:21:22")).toBe(true); + expect(format.validate("garbage text")).toBe(false); }); it("parses valid input", function () {