Skip to content

Commit

Permalink
test: 💍 add new test
Browse files Browse the repository at this point in the history
  • Loading branch information
touv committed Jun 7, 2024
1 parent b6d6365 commit 238a9b4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions packages/core/test/fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,36 @@ describe('fork)', () => {
done();
});
});
it('#1ter(standalone)', (done) => {
let res = 0;
const script = `
[assign]
path = a
value = 99
`;
from([
1,
2,
3,
4,
5,
])
.pipe(ezs('fork', {
script,
standalone: true,
target: true,
}))
.pipe(ezs.catch())
.on('error', done)
.on('data', (chunk) => {
res += Number(chunk);
})
.on('end', () => {
assert.equal(15, res);
done();
});
});



it('#2', (done) => {
Expand Down

0 comments on commit 238a9b4

Please sign in to comment.