Permalink
Browse files

gstimeFromDate test is added.

  • Loading branch information...
1 parent 6bff0a9 commit ecab5a26164a1a93620976299a076d71ba3cf639 @ezze ezze committed Sep 9, 2016
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/satellite.spec.js
@@ -32,6 +32,14 @@ define([
now.getUTCMinutes(),
now.getUTCSeconds()
));
+ expect(satellite.gstimeFromDate(now)).toBe(satellite.gstimeFromDate(
+ now.getUTCFullYear(),
+ now.getUTCMonth() + 1,
+ now.getUTCDate(),
+ now.getUTCHours(),
+ now.getUTCMinutes(),
+ now.getUTCSeconds()
+ ));
var date = new Date(2016, 7, 22),
tleLine1 = '1 27424U 02022A 16235.86686911 .00000105 00000-0 33296-4 0 9990',

0 comments on commit ecab5a2

Please sign in to comment.