fix(libreoffice): wrong HTTP status codes if invalid PDF formats

This commit is contained in:
Julien Neuhart
2024-01-18 12:00:32 +01:00
parent e5194b313d
commit b8926350b9
7 changed files with 44 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ func TestLibreOfficePdfEngine_Convert(t *testing.T) {
scenario: "invalid PDF format",
api: &api.ApiMock{
PdfMock: func(ctx context.Context, logger *zap.Logger, inputPath, outputPath string, options api.Options) error {
return api.ErrInvalidPdfFormat
return api.ErrInvalidPdfFormats
},
},
expectError: true,