You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
622 B
JavaScript

import { JulianDate } from "../../Source/Cesium.js";
import { LeapSecond } from "../../Source/Cesium.js";
describe("Core/LeapSecond", function () {
it("default constructor sets expected values", function () {
var leapSecond = new LeapSecond();
expect(leapSecond.julianDate).toBeUndefined();
expect(leapSecond.offset).toBeUndefined();
});
it("constructor sets expected values", function () {
var date = new JulianDate();
var offset = 12;
var leapSecond = new LeapSecond(date, offset);
expect(leapSecond.julianDate).toEqual(date);
expect(leapSecond.offset).toEqual(offset);
});
});