Skip to content

Commit cfa1852

Browse files
authored
MINOR fix to json nested test (#179)
1 parent 3245ea4 commit cfa1852

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

schemaregistry/test/serde/json.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,16 @@ describe('JsonSerializer', () => {
221221
validate: true
222222
})
223223

224-
let obj = {
224+
let nested = {
225225
intField: 123,
226226
doubleField: 45.67,
227227
stringField: 'hi',
228228
boolField: true,
229229
bytesField: Buffer.from([0, 0, 0, 1]).toString('base64')
230230
}
231+
let obj = {
232+
otherField: nested
233+
}
231234
let bytes = await ser.serialize(topic, obj)
232235

233236
let deser = new JsonDeserializer(client, SerdeType.VALUE, {})

0 commit comments

Comments
 (0)