[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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user