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

15 lines
507 B
Lua
Raw Normal View History

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