Skip to content

Commit f5e9b68

Browse files
test: schema with multiple keys in nested object
1 parent b2bfa53 commit f5e9b68

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/sdk/tests/unit/utils/data.reverseSafeSchema.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ describe('reverseSafeSchema()', function () {
7575
// --- GIVEN
7676
const schemaInput = [
7777
{
78-
id: 'nested.object.with.binary.data.pngImage:string',
78+
id: 'nested.object.with.binary.data.pngImage:image/png',
79+
},
80+
{
81+
id: 'nested.object.with.binary.data.string:string',
7982
},
8083
];
8184

@@ -89,7 +92,8 @@ describe('reverseSafeSchema()', function () {
8992
with: {
9093
binary: {
9194
data: {
92-
pngImage: 'string',
95+
pngImage: 'image/png',
96+
string: 'string',
9397
},
9498
},
9599
},

0 commit comments

Comments
 (0)