Skip to content

Commit

Permalink
fix: switch arguments to use default folder
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickHeneise committed Dec 25, 2023
1 parent 1f0f102 commit fe61a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'node:path'
import { readFile } from 'node:fs/promises'

export default async function readFixtures(folder = 'fixtures', name) {
export default async function readFixtures(name, folder = 'fixtures') {
const rawFile = await readFile(
join(process.cwd(), 'test', folder, name),
'utf8'
Expand Down

0 comments on commit fe61a41

Please sign in to comment.