Skip to content

Commit

Permalink
Adjust null value test to be an actual message object
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-H committed Sep 11, 2024
1 parent fa3216e commit d995446
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/typescript-client/test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ describe(`Message parser`, () => {

it(`should parse null value on column named value`, () => {
const schema = {
a: { type: `text`, dims: 1 },
value: { type: `text`, dims: 1 },
}

expect(parser.parse(`[ { "value": null } ]`, schema)).toEqual([
{ value: null },
expect(parser.parse(`[ { "value": {"value": null} } ]`, schema)).toEqual([
{ value: { value: null } },
])
})
})

0 comments on commit d995446

Please sign in to comment.