Skip to content

Commit 44b3c03

Browse files
committed
Add failing test with empty transform options with array syntax
1 parent faef048 commit 44b3c03

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

test/tr_opts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('transform options', function (t) {
1515

1616
p.pipe(JSONStream.stringify()).pipe(pack).pipe(concat(function (src) {
1717
Function('console', src.toString('utf8'))({
18-
log: function (msg) { t.equal(msg, 333) }
18+
log: function (msg) { t.equal(msg, 999) }
1919
});
2020
}));
2121
});

test/tr_opts/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
console.log(FFF * GGG);
1+
console.log(FFF * GGG * HHH);

test/tr_opts/node_modules/hhh/index.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/tr_opts/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"mdtr": [
33
[ "fff", { "x": 3 } ],
4-
[ "ggg", { "z": 111 } ]
4+
[ "ggg", { "z": 111 } ],
5+
[ "hhh" ]
56
]
67
}

0 commit comments

Comments
 (0)