Skip to content

Commit

Permalink
fix(test): Use fromFileURL to parse file path [win]
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jun 8, 2024
1 parent 09e46d6 commit e7c5bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bids-validator/src/files/deno.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertEquals, assertRejects } from '../deps/asserts.ts'
import { readAll, readerFromStreamReader } from '../deps/stream.ts'
import { dirname, basename, join } from '../deps/path.ts'
import { dirname, basename, join, fromFileUrl } from '../deps/path.ts'
import { BIDSFileDeno, UnicodeDecodeError } from './deno.ts'
import { requestReadPermission } from '../setup/requestPermissions.ts'
import { FileIgnoreRules } from './ignore.ts'
Expand All @@ -9,7 +9,7 @@ await requestReadPermission()

// Use this file for testing file behavior
const testUrl = import.meta.url
const testPath = testUrl.slice('file://'.length)
const testPath = fromFileUrl(testUrl)
const testDir = dirname(testPath)
const testFilename = basename(testPath)
const ignore = new FileIgnoreRules([])
Expand Down

0 comments on commit e7c5bec

Please sign in to comment.