mirror of
https://github.com/koreader/koreader
synced 2024-11-16 06:12:56 +00:00
e3c17aa6d0
* Travis: run luacheck on unit tests
15 lines
512 B
Lua
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)
|