diff --git a/tests/config.test.ts b/tests/config.test.ts index e862579..896b4be 100644 --- a/tests/config.test.ts +++ b/tests/config.test.ts @@ -31,7 +31,7 @@ describe('parseConfig', () => { publicUrl: 'http://localhost:3000', maxFileSizeBytes: 512 * 1024 * 1024, logLevel: 'info', - chunkPoolSize: 30, + chunkPoolSize: 30 }); expect(config.targets).toEqual([ { @@ -40,6 +40,7 @@ describe('parseConfig', () => { dir: './uploads/photos', allowDirectories: false, allowedMimeTypes: DEFAULT_ALLOWED_MIME, + permission:0o666 }, ]); expect(config.targets[0]?.allowedMimeTypes).toBe(DEFAULT_ALLOWED_MIME); @@ -97,6 +98,7 @@ describe('parseConfig', () => { dir: './x', allowDirectories: false, allowedMimeTypes: DEFAULT_ALLOWED_MIME, + permission:0o666 }); expect( parseConfig({ ...BASE, targets: [{ name: 'x', dir: './x', allowDirectories: true }] })