Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dannybloe committed May 26, 2016
1 parent e00dabd commit 0722871
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dzVents/tests/testEventHelpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local function values(t)
end

describe('event helpers', function()
local EventHelpers, helpers, utils
local EventHelpers, helpers, utils, settings

local domoticz = {
['EVENT_TYPE_TIMER'] = 'timer',
Expand All @@ -36,7 +36,7 @@ describe('event helpers', function()
}

setup(function()
local settings = {
settings = {
['Log level'] = 1
}

Expand Down Expand Up @@ -539,6 +539,8 @@ describe('event helpers', function()
local dumped = false
local fetched = false

helpers.settings['Enable http fetch'] = true

helpers.dumpCommandArray = function()
dumped = true
end
Expand Down Expand Up @@ -567,10 +569,8 @@ describe('event helpers', function()
assert.is_true(fetched)
end)


it('should auto fetch http data', function()
local fetched = false

helpers.fetchHttpDomoticzData = function()
fetched = true
end
Expand Down

0 comments on commit 0722871

Please sign in to comment.