Skip to content

Commit bdca2be

Browse files
committed
fix: Do not use test function in main flow
1 parent ec8e47b commit bdca2be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/schema/walk.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { BIDSFile, FileOpener, FileTree } from '../types/filetree.ts'
33
import type { DatasetIssues } from '../issues/datasetIssues.ts'
44
import { loadTSV } from '../files/tsv.ts'
55
import { loadJSON } from '../files/json.ts'
6-
import { asyncStreamFromString } from '../tests/utils.ts'
76

87
function* quickWalk(dir: FileTree): Generator<BIDSFile> {
98
for (const file of dir.files) {
@@ -19,7 +18,7 @@ class NullFileOpener implements FileOpener {
1918
constructor(size = 0) {
2019
this.size = size
2120
}
22-
stream = () => asyncStreamFromString('')
21+
stream = async () => new ReadableStream({start(controller) { controller.close()} })
2322
text = async () => ''
2423
readBytes = async (size: number, offset?: number) => new Uint8Array()
2524
}

0 commit comments

Comments
 (0)