mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
dbg_spec: setVerbose test
This commit is contained in:
@@ -73,4 +73,14 @@ describe("Dbg module", function()
|
||||
re = {foo:bar()}
|
||||
assert.is.same(re, {1, 2, 3})
|
||||
end)
|
||||
|
||||
it("should set verbose", function()
|
||||
assert.is_nil(dbg.is_verbose)
|
||||
dbg:setVerbose(true)
|
||||
assert.is_true(dbg.is_verbose)
|
||||
dbg:setVerbose(false)
|
||||
assert.is_false(dbg.is_verbose)
|
||||
dbg:setVerbose()
|
||||
assert.is_nil(dbg.is_verbose)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user