Skip to content

Commit a3c9d18

Browse files
committed
test(compat/object/fromPairs): enable test for consuming 'toPairs' return value
1 parent 602a428 commit a3c9d18

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/compat/object/fromPairs.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { describe, expect, expectTypeOf, it } from 'vitest';
22
import type { fromPairs as fromPairsLodash } from 'lodash';
33
import { fromPairs } from './fromPairs';
4+
import { toPairs } from './toPairs';
45
import { falsey } from '../_internal/falsey';
56

67
describe('fromPairs', () => {
@@ -66,10 +67,10 @@ describe('fromPairs', () => {
6667
expect(actual).toEqual({ 'a.b': 1 });
6768
});
6869

69-
// it('should support consuming the return value of `_.toPairs`', () => {
70-
// const object = { 'a.b': 1 };
71-
// expect(fromPairs(toPairs(object))).toEqual(object);
72-
// });
70+
it('should support consuming the return value of `toPairs`', () => {
71+
const object = { 'a.b': 1 };
72+
expect(fromPairs(toPairs(object))).toEqual(object);
73+
});
7374

7475
it('should match the type of lodash', () => {
7576
expectTypeOf(fromPairs).toEqualTypeOf<typeof fromPairsLodash>();

0 commit comments

Comments
 (0)