2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/spec/unit/wikipedia_spec.lua
Frans de Jonge e3c17aa6d0 Travis: run luacheck on unit tests (#3059)
* Travis: run luacheck on unit tests
2017-08-08 13:35:40 -07:00

15 lines
512 B
Lua

describe("Wikipedia module", function()
local Wikipedia
setup(function()
require("commonrequire")
Wikipedia = require("ui/wikipedia")
end)
it("should return Wikipedia server", function()
local expected_server_default = "https://en.wikipedia.org"
local expected_server_nl = "https://nl.wikipedia.org"
assert.is.same(expected_server_default, Wikipedia:getWikiServer())
assert.is.same(expected_server_nl, Wikipedia:getWikiServer("nl"))
end)
end)