Skip to content

Commit e569643

Browse files
committed
fix: revert the mapTransform test to previous implementation
1 parent f66e72e commit e569643

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/core/src/__tests__/__snapshots__/mapTransform.test.ts.snap

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ Object {
1414
"doNotTransform": "nope",
1515
"muchNewerKey": "123",
1616
},
17-
Object {
18-
"doNotTransform": "nope",
19-
"muchNewerKey": "123",
20-
},
21-
Object {
22-
"doNotTransform": "nope",
23-
"muchNewerKey": "123",
24-
},
2517
],
2618
"newId": 1,
2719
}

packages/core/src/__tests__/mapTransform.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ describe('mapTransform', () => {
1616
return value;
1717
},
1818
newArray: (value: unknown) => {
19-
if (isString(value)) {
20-
return value.slice(0, 1);
19+
if (Array.isArray(value)) {
20+
return value.slice(0, 1) as unknown[];
2121
}
2222
return value;
2323
},

0 commit comments

Comments
 (0)