Skip to content

Commit f1b6845

Browse files
committed
0.2.17
1 parent 997afad commit f1b6845

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nnao45/jsq",
3-
"version": "0.2.16",
3+
"version": "0.2.17",
44
"description": "JavaScript-Powered JSON Query CLI Tool",
55
"type": "module",
66
"main": "dist/index.js",

src/core/lib/variable-pipeline.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,20 @@ describe('Variable Pipeline with SmartDollar Integration', () => {
186186

187187
it('should execute variable pipeline with newline correctly', async () => {
188188
const data = { users: [{ age: 25 }, { age: 30 }] };
189-
const result = await evaluator.evaluate('const ages = $.users.pluck("age") |\nages.sum()', data);
189+
const result = await evaluator.evaluate(
190+
'const ages = $.users.pluck("age") |\nages.sum()',
191+
data
192+
);
190193

191194
expect(result).toBe(55);
192195
});
193196

194197
it('should execute variable pipeline with newline and indentation correctly', async () => {
195198
const data = { users: [{ age: 25 }, { age: 30 }] };
196-
const result = await evaluator.evaluate('const ages = $.users.pluck("age") |\n ages.sum()', data);
199+
const result = await evaluator.evaluate(
200+
'const ages = $.users.pluck("age") |\n ages.sum()',
201+
data
202+
);
197203

198204
expect(result).toBe(55);
199205
});

0 commit comments

Comments
 (0)