Skip to content

Commit

Permalink
test(helpers): update test name
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Jul 28, 2023
1 parent 980d2e4 commit 1a54fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Support/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ describe('function helpers', () => {
expect(func.dataGet(structure, ['*', '0'], 'default')).toBe('default');
});

it('should collection as data', () => {
it('should accept collection as data', () => {
const collection = collect([{ id: 1, name: 'test-1' }, { id: 2, name: 'test-2' }]);

expect(func.dataGet(collection, '*.id')).toStrictEqual([1, 2]);
Expand Down

0 comments on commit 1a54fe8

Please sign in to comment.