Skip to content

Commit

Permalink
test: 💍 tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ttskch committed Jun 28, 2021
1 parent 6f1b68f commit 6fc249d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tests/real-world.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function doTest(pathToOriginalSvg, pathToOutputSvg, pathToOutputHtml, pathToExpe
paper.apply()

fs.writeFileSync(pathToOutputSvg, document.body.innerHTML)
fs.writeFileSync(pathToOutputHtml, '<!DOCTYPE html><html><head><link rel="stylesheet" href="../../../dist/svg-paper.min.css"><style>@page{size:A4}</style></head><body class="A4">' + document.body.innerHTML + '</body></html>')
fs.writeFileSync(pathToOutputHtml, '<!DOCTYPE html><html><head><link rel="stylesheet" href="../../../dist/svg-paper.min.css"><style>@page{size:A4}</style></head><body><div class="paper A4">' + document.body.innerHTML + '</div></body></html>')

expect(fs.readFileSync(pathToExpectedOutputSvg, 'utf-8')).toEqual(document.body.innerHTML)
}

0 comments on commit 6fc249d

Please sign in to comment.