Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMalfait committed Oct 17, 2024
1 parent fc1fbfe commit 8a30f52
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ describe('isFieldValueEmpty', () => {
fieldValue: { foo: 'bar' },
}),
).toBe(false);
expect(
isFieldValueEmpty({
fieldDefinition: relationFieldDefinition,
fieldValue: [],
}),
).toBe(true);
expect(
isFieldValueEmpty({
fieldDefinition: relationFieldDefinition,
fieldValue: [{ id: '123' }],
}),
).toBe(false);
});

it('should return correct value for select field', () => {
Expand Down

0 comments on commit 8a30f52

Please sign in to comment.