From 4189eb4dd210fab906f27636329ef1adf6c33084 Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 28 Sep 2023 17:04:30 -0700 Subject: [PATCH] test: windows paths are too url-like --- test/basic.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/basic.ts b/test/basic.ts index d33504c..24216b6 100644 --- a/test/basic.ts +++ b/test/basic.ts @@ -1,10 +1,10 @@ import { spawn } from 'child_process' +import eos from 'end-of-stream' import EE from 'events' -import {unlinkSync, writeFileSync} from 'fs' +import { unlinkSync, writeFileSync } from 'fs' import t from 'tap' -import {fileURLToPath} from 'url' +import { fileURLToPath } from 'url' import { Minipass } from '../src/index.js' -import eos from 'end-of-stream' t.test('some basic piping and writing', async t => { let mp = new Minipass({ @@ -244,7 +244,9 @@ t.test('end with chunk pending', async t => { }) t.test('pipe to stderr does not throw', t => { - const module = JSON.stringify(fileURLToPath(new URL('../dist/esm/index.js', import.meta.url))) + const module = JSON.stringify( + String(new URL('../dist/esm/index.js', import.meta.url)) + ) const file = fileURLToPath(new URL('./prog.js', import.meta.url)) writeFileSync( file,