Skip to content

Commit

Permalink
fix(tests): fix results folder creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Sep 9, 2024
1 parent 2bb5ca7 commit 6fcbc1e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/tests/metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { mkdir } from 'node:fs/promises';
import { join } from 'node:path';

try {
await mkdir(join('src', 'tests', 'results'));
await mkdir(join('fixtures', 'results'));
} catch (err) {
// empty
}
Expand All @@ -31,11 +31,7 @@ describe('Metadata service', () => {
prependUnicode: true,
});

await writeFile(
join('fixtures', 'results', 'plop.svg'),
'plop',
'utf-8',
);
await writeFile(join('fixtures', 'results', 'plop.svg'), 'plop', 'utf-8');
const infos = await promisify(metadataService)(
join('fixtures', 'results', 'plop.svg'),
);
Expand Down

0 comments on commit 6fcbc1e

Please sign in to comment.