Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
oniietzschan committed Oct 2, 2017
1 parent 4f4e67d commit 43b8aae
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,10 @@ describe('Terebi:', function()
return 640, 480, {'flags'}
end)
_G.love.window.fromPixels = spy.new(function(x, y)
if y then
return x / pixelScale, y / pixelScale
else
return x / pixelScale
end
return x / pixelScale, y / pixelScale
end)
_G.love.window.toPixels = spy.new(function(x, y)
if y then
return x * pixelScale, y * pixelScale
else
return x * pixelScale
end
return x * pixelScale, y * pixelScale
end)
end)

Expand Down

0 comments on commit 43b8aae

Please sign in to comment.