fix tests
This commit is contained in:
parent
490b9ac61f
commit
4f2bed5932
1 changed files with 3 additions and 1 deletions
|
|
@ -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 }] })
|
||||
|
|
|
|||
Loading…
Reference in a new issue