feat(pick): accept a callback for advanced picking #115
Annotations
12 errors
Validate
Process completed with exit code 1.
|
tests/object/reduceKeys.test.ts > reduceKeys function > returns undefined when none of the given keys exist in the object:
tests/object/reduceKeys.test.ts#L15
AssertionError: expected 'c' to be undefined // Object.is equality
- Expected:
undefined
+ Received:
"c"
❯ tests/object/reduceKeys.test.ts:15:20
|
tests/object/reduceKeys.test.ts > reduceKeys function > starts as undefined if no initial value is provided:
tests/object/reduceKeys.test.ts#L27
AssertionError: expected [ 'a', [ '2', 'b', { a: 1, b: '2' } ] ] to deeply equal [ [ undefined ], …(2) ]
- Expected
+ Received
Array [
- Array [
- undefined,
- ],
- Array [
- 1,
"a",
- Object {
- "a": 1,
- "b": "2",
- },
- ],
Array [
"2",
"b",
Object {
"a": 1,
"b": "2",
},
],
]
❯ tests/object/reduceKeys.test.ts:27:20
|
Test (20.x)
Process completed with exit code 1.
|
Test (18.x)
The job was canceled because "_20_x" failed.
|
tests/object/reduceKeys.test.ts > reduceKeys function > returns undefined when none of the given keys exist in the object:
tests/object/reduceKeys.test.ts#L15
AssertionError: expected 'c' to be undefined // Object.is equality
- Expected:
undefined
+ Received:
"c"
❯ tests/object/reduceKeys.test.ts:15:20
|
tests/object/reduceKeys.test.ts > reduceKeys function > starts as undefined if no initial value is provided:
tests/object/reduceKeys.test.ts#L27
AssertionError: expected [ 'a', [ '2', 'b', { a: 1, b: '2' } ] ] to deeply equal [ [ undefined ], …(2) ]
- Expected
+ Received
Array [
- Array [
- undefined,
- ],
- Array [
- 1,
"a",
- Object {
- "a": 1,
- "b": "2",
- },
- ],
Array [
"2",
"b",
Object {
"a": 1,
"b": "2",
},
],
]
❯ tests/object/reduceKeys.test.ts:27:20
|
Test (18.x)
Process completed with exit code 1.
|
Test (22.x)
The job was canceled because "_20_x" failed.
|
tests/object/reduceKeys.test.ts > reduceKeys function > returns undefined when none of the given keys exist in the object:
tests/object/reduceKeys.test.ts#L15
AssertionError: expected 'c' to be undefined // Object.is equality
- Expected:
undefined
+ Received:
"c"
❯ tests/object/reduceKeys.test.ts:15:20
|
tests/object/reduceKeys.test.ts > reduceKeys function > starts as undefined if no initial value is provided:
tests/object/reduceKeys.test.ts#L27
AssertionError: expected [ 'a', [ '2', 'b', { a: 1, b: '2' } ] ] to deeply equal [ [ undefined ], …(2) ]
- Expected
+ Received
Array [
- Array [
- undefined,
- ],
- Array [
- 1,
"a",
- Object {
- "a": 1,
- "b": "2",
- },
- ],
Array [
"2",
"b",
Object {
"a": 1,
"b": "2",
},
],
]
❯ tests/object/reduceKeys.test.ts:27:20
|
Test (22.x)
The operation was canceled.
|