Skip to content

Commit eb2a82a

Browse files
committed
use import instead of global variable
1 parent 7fe22b0 commit eb2a82a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/frontmatter/frontmatter.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { compareFiles } from 'tests/common';
22
import { describe, expect, it } from 'vitest';
33

44
describe('Frontmatter', () => {
5-
it('should format yaml frontmatter', () => {
6-
const { actual, expected } = compareFiles(__dirname);
5+
it('should format yaml frontmatter', async () => {
6+
const { expected, actual } = await compareFiles(import.meta.url);
77
expect(actual).toBe(expected);
88
});
99
});

0 commit comments

Comments
 (0)