2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
koreader/spec/unit/wikipedia_spec.lua

15 lines
512 B
Lua
Raw Normal View History

2017-04-15 14:09:28 +00:00
describe("Wikipedia module", function()
local Wikipedia
2017-04-15 14:09:28 +00:00
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)