Skip to content

Commit

Permalink
test: windows paths are too url-like
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 29, 2023
1 parent a592433 commit 4189eb4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/basic.ts
Original file line number Diff line number Diff line change
@@ -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<string, string>({
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4189eb4

Please sign in to comment.