Skip to content

Commit

Permalink
fix koptcontext test spec
Browse files Browse the repository at this point in the history
API of PNG export functions has changed, reflect that in the test
suite.

Gets rid of an error message.
  • Loading branch information
hwhw committed Nov 30, 2014
1 parent c2fc457 commit 3430f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/koptcontext_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ describe("KOPTContext module", function()
it("should export src bitmap to PNG file", function()
local kc = KOPTContext.new()
mupdf.openDocument(sample_pdf):openPage(1):toBmp(kc.src, 300)
kc:exportSrcPNGFile("/tmp/src.png")
kc:exportSrcPNGFile(nil, nil, "/tmp/src.png")
end)
it("should export src bitmap to PNG string", function()
local kc = KOPTContext.new()
mupdf.openDocument(sample_pdf):openPage(1):toBmp(kc.src, 300)
local png = kc:exportSrcPNGString()
local png = kc:exportSrcPNGString("none")
assert.truthy(png)
end)
end)

0 comments on commit 3430f19

Please sign in to comment.