Skip to content

Commit

Permalink
Issues with test data against my bridge and problems with Day light s…
Browse files Browse the repository at this point in the history
…aving timezones again
  • Loading branch information
peter-murray committed Oct 10, 2016
1 parent dba7d89 commit 9f0dddb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions test/schedule-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("Hue API", function () {
return scheduledEvent.create()
.withName("createTest")
.withCommand(validCommand)
.at(Date.now() + 10000);
.at(Date.now() + (60 * 60 * 1000) + (5 * 60 * 1000));
}


Expand Down Expand Up @@ -88,6 +88,8 @@ describe("Hue API", function () {
describe("using #promise", function () {

it("should schedule a valid event", function (finished) {
var event = generateTestScheduleEvent();

hue.scheduleEvent(generateTestScheduleEvent())
.then(checkResults)
.then(removeSchedule)
Expand Down Expand Up @@ -229,7 +231,7 @@ describe("Hue API", function () {
var updates = {
"name" : "New Name",
"description": "Does Something",
"localtime" : Date.now() + 2000,
"localtime" : Date.now() + (60 * 60 * 1000) + (5 * 60 * 1000),
"command" : {
"address": "/api/0/lights/invalid",
"method" : "GET",
Expand Down Expand Up @@ -297,7 +299,7 @@ describe("Hue API", function () {
var updates = {
"name" : "New Name",
"description": "Does Something",
"localtime" : Date.now() + 3000,
"localtime" : Date.now() + (60 * 60 * 1000) + (5 * 60 * 1000),
"command" : {
"address": "/api/0/lights/invalid",
"method" : "GET",
Expand Down
2 changes: 1 addition & 1 deletion test/support/testValues.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
host : "192.168.2.245",
username : "08a902b95915cdd9b75547cb50892dc4",

lightsCount : 21,
lightsCount : 22,

locateTimeout: 7000,
maxScheduleNameLength: 32,
Expand Down

0 comments on commit 9f0dddb

Please sign in to comment.