Skip to content

Commit 5a481d4

Browse files
committed
Fix regex_match_all test.
Replaced `to_object()` with `from_items()`
1 parent da11b3c commit 5a481d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jmespath-functions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ describe('Added functions', () => {
191191
['bar=99', 'bar', '99'],
192192
]);
193193
expect(
194-
search('foo=24 bar=99', "regex_match_all('/(\\w+)=(\\d+)/g', @) | map(&[[1],[2]], @) | to_object(@)"),
194+
search('foo=24 bar=99', "regex_match_all('/(\\w+)=(\\d+)/g', @) | map(&[[1],[2]], @) | from_items(@)"),
195195
).toEqual({ foo: '24', bar: '99' });
196196
});
197197

0 commit comments

Comments
 (0)