Make luacheck >= 0.26 happy (#9174)

Re: https://github.com/koreader/koreader-base/pull/1487
This commit is contained in:
NiLuJe
2022-06-11 19:06:06 +02:00
committed by GitHub
parent d644b1a851
commit dcb11c2542
11 changed files with 73 additions and 73 deletions

View File

@@ -205,8 +205,8 @@ describe("Readerrolling module", function()
it("should emit PageUpdate event after book is rendered", function()
local ReaderView = require("apps/reader/modules/readerview")
local saved_handler = ReaderView.onPageUpdate
ReaderView.onPageUpdate = function(_self)
assert.are.same(6, _self.ui.document:getPageCount())
ReaderView.onPageUpdate = function(this)
assert.are.same(6, this.ui.document:getPageCount())
end
local test_book = "spec/front/unit/data/sample.txt"
require("docsettings"):open(test_book):purge()