mirror of
https://github.com/nasa/openmct.git
synced 2025-05-28 21:24:20 +00:00
[Time Conductor] Split test cases
Verify table structure separately from table contents per code review feedback, https://github.com/nasa/openmctweb/pull/451/files#r48999214
This commit is contained in:
parent
b9146fbeac
commit
2436c32e6d
@ -112,6 +112,18 @@ define(
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("exposes times to populate calendar as a table", function () {
|
it("exposes times to populate calendar as a table", function () {
|
||||||
|
// Verify that data structure is as expected by template
|
||||||
|
expect(mockScope.table).toEqual(jasmine.any(Array));
|
||||||
|
expect(mockScope.table[0]).toEqual(jasmine.any(Array));
|
||||||
|
expect(mockScope.table[0][0]).toEqual({
|
||||||
|
year: jasmine.any(Number),
|
||||||
|
month: jasmine.any(Number),
|
||||||
|
day: jasmine.any(Number),
|
||||||
|
dayOfYear: jasmine.any(Number)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it("contains the current date in its initial table", function () {
|
||||||
var matchingCell;
|
var matchingCell;
|
||||||
// Should be able to find the selected date
|
// Should be able to find the selected date
|
||||||
mockScope.table.forEach(function (row) {
|
mockScope.table.forEach(function (row) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user