fix: update nginx image version and add ignoreEncryption flag in pdf decrypt tests

This commit is contained in:
alam00000
2026-03-31 11:51:25 +05:30
parent d1bac8675b
commit fefc433e0b
2 changed files with 3 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ RUN --mount=type=secret,id=VITE_CORS_PROXY_URL \
npm run build:with-docs npm run build:with-docs
# Production stage # Production stage
FROM quay.io/nginx/nginx-unprivileged:stable-alpine-slim FROM quay.io/nginx/nginx-unprivileged:1.28.3-alpine-slim
LABEL org.opencontainers.image.source="https://github.com/alam00000/bentopdf" LABEL org.opencontainers.image.source="https://github.com/alam00000/bentopdf"
LABEL org.opencontainers.image.url="https://github.com/alam00000/bentopdf" LABEL org.opencontainers.image.url="https://github.com/alam00000/bentopdf"

View File

@@ -230,6 +230,7 @@ describe('pdf decrypt', () => {
expect(mockPdfDocumentLoad).toHaveBeenCalledWith( expect(mockPdfDocumentLoad).toHaveBeenCalledWith(
new Uint8Array([8, 8, 8]), new Uint8Array([8, 8, 8]),
{ {
ignoreEncryption: true,
throwOnInvalidObject: false, throwOnInvalidObject: false,
} }
); );
@@ -267,6 +268,7 @@ describe('pdf decrypt', () => {
expect(mockPdfDocumentLoad).toHaveBeenCalledWith( expect(mockPdfDocumentLoad).toHaveBeenCalledWith(
new Uint8Array([6, 6, 6]), new Uint8Array([6, 6, 6]),
{ {
ignoreEncryption: true,
throwOnInvalidObject: false, throwOnInvalidObject: false,
} }
); );