mirror of
https://github.com/nasa/openmct.git
synced 2025-05-28 21:24:20 +00:00
[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:
parent
0541f6edfa
commit
90389ea910
@ -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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user