[Time Conductor] Increase test specificity

Explicitly check for boolean values (not just truthy/falsy values)
per feedback from code review, nasa/openmctweb#204.
This commit is contained in:
Victor Woeltjen 2015-10-28 09:56:50 -07:00
parent 0541f6edfa
commit 90389ea910

View File

@ -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 () {