@transformation/process
Advanced tools
Comparing version 4.1.0 to 4.1.1
{ | ||
"name": "@transformation/process", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Transformations for working with processes", | ||
@@ -21,4 +21,4 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@transformation/core": "^4.1.0", | ||
"@transformation/stream": "^4.1.0", | ||
"@transformation/core": "^4.1.1", | ||
"@transformation/stream": "^4.1.1", | ||
"medium": "1.1.1" | ||
@@ -34,3 +34,3 @@ }, | ||
}, | ||
"gitHead": "515bd8a714852520556f12b42640257e0463eecf" | ||
"gitHead": "38cac774e2c1a352cdfbf6fd30d4c7effb319025" | ||
} |
@@ -6,2 +6,3 @@ const expect = require("unexpected").clone().use(require("unexpected-steps")); | ||
emitItems, | ||
forEach, | ||
pipeline, | ||
@@ -58,2 +59,18 @@ program, | ||
it("can run as a program", async () => { | ||
const output = []; | ||
await program( | ||
spawn("find", [".", "-name", "*.txt", "-print0"], { cwd: testDir }), | ||
lines(0), | ||
skipLast(), | ||
sort(), | ||
forEach((item) => { | ||
output.push(item); | ||
}) | ||
); | ||
expect(output, "to equal", ["./0.txt", "./1.txt", "./2.txt"]); | ||
}); | ||
it("fails if the command ends with a non-zero exit code", async () => { | ||
@@ -60,0 +77,0 @@ await expect( |
15075
364
Updated@transformation/core@^4.1.1