Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Apr 7, 2021
1 parent dc83904 commit 67a1dd0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/client-api/src/args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,12 @@ describe('mapArgsToTypes', () => {
});
});

it('passes raw string for object type', () => {
expect(mapArgsToTypes({ a: 'string' }, { a: { type: boolObjectType } })).toStrictEqual({
a: 'string',
});
it('passes string for object type', () => {
expect(mapArgsToTypes({ a: 'A' }, { a: { type: boolObjectType } })).toStrictEqual({ a: 'A' });
});

it('parses number for object type', () => {
expect(mapArgsToTypes({ a: '1.2' }, { a: { type: boolObjectType } })).toStrictEqual({
a: 1.2,
});
it('passes number for object type', () => {
expect(mapArgsToTypes({ a: 1.2 }, { a: { type: boolObjectType } })).toStrictEqual({ a: 1.2 });
});

it('deeply maps objects', () => {
Expand Down

0 comments on commit 67a1dd0

Please sign in to comment.