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',
|
publicUrl: 'http://localhost:3000',
|
||||||
maxFileSizeBytes: 512 * 1024 * 1024,
|
maxFileSizeBytes: 512 * 1024 * 1024,
|
||||||
logLevel: 'info',
|
logLevel: 'info',
|
||||||
chunkPoolSize: 30,
|
chunkPoolSize: 30
|
||||||
});
|
});
|
||||||
expect(config.targets).toEqual([
|
expect(config.targets).toEqual([
|
||||||
{
|
{
|
||||||
|
|
@ -40,6 +40,7 @@ describe('parseConfig', () => {
|
||||||
dir: './uploads/photos',
|
dir: './uploads/photos',
|
||||||
allowDirectories: false,
|
allowDirectories: false,
|
||||||
allowedMimeTypes: DEFAULT_ALLOWED_MIME,
|
allowedMimeTypes: DEFAULT_ALLOWED_MIME,
|
||||||
|
permission:0o666
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
expect(config.targets[0]?.allowedMimeTypes).toBe(DEFAULT_ALLOWED_MIME);
|
expect(config.targets[0]?.allowedMimeTypes).toBe(DEFAULT_ALLOWED_MIME);
|
||||||
|
|
@ -97,6 +98,7 @@ describe('parseConfig', () => {
|
||||||
dir: './x',
|
dir: './x',
|
||||||
allowDirectories: false,
|
allowDirectories: false,
|
||||||
allowedMimeTypes: DEFAULT_ALLOWED_MIME,
|
allowedMimeTypes: DEFAULT_ALLOWED_MIME,
|
||||||
|
permission:0o666
|
||||||
});
|
});
|
||||||
expect(
|
expect(
|
||||||
parseConfig({ ...BASE, targets: [{ name: 'x', dir: './x', allowDirectories: true }] })
|
parseConfig({ ...BASE, targets: [{ name: 'x', dir: './x', allowDirectories: true }] })
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue