Skip to content

Commit

Permalink
Add tests for non string fields inside params
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Jan 16, 2021
1 parent 8d0d5d7 commit f7e52b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/__tests__/live-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,15 @@ describe('API integration', function () {
const params = {
waitForCompletion: true,
params : {
fields: { myField: 'test' },
fields: { myField: 'test', num: 1, obj: { foo: 'bar' } },
steps : { resize: resizeOriginalStep },
},
}

const result = await client.createAssembly(params)
expect(result.fields.myField).toBe('test')
expect(result.fields.num).toBe(1)
expect(result.fields.obj).toStrictEqual({ foo: 'bar' })
})

it('should allow adding different types', async () => {
Expand Down

0 comments on commit f7e52b7

Please sign in to comment.