test: add expectation on conversion

This commit is contained in:
Antoine Aflalo
2024-08-27 10:54:26 -04:00
parent f4d89d5da9
commit 49fa1d3a7f
3 changed files with 46 additions and 16 deletions

View File

@@ -17,6 +17,10 @@ func WriteChapterToCBZ(chapter *packer.Chapter, outputFilePath string) error {
// Create a new ZIP writer
zipWriter := zip.NewWriter(zipFile)
err = zipWriter.SetComment("Created by CBZOptimizer")
if err != nil {
return err
}
defer zipWriter.Close()
// Write each page to the ZIP archive