Improved existing tests

This commit is contained in:
Alejandro Celaya
2020-11-28 11:45:04 +01:00
parent 2a206f11b9
commit dc397d4b82
2 changed files with 25 additions and 0 deletions

View File

@@ -60,4 +60,11 @@ describe('<Checkbox />', () => {
expect(onChange).toHaveBeenCalledWith(false, e);
});
it('allows setting inline rendering', () => {
const wrapped = createComponent({ inline: true });
const control = wrapped.find('.custom-control');
expect(control.prop('style')).toEqual({ display: 'inline-block' });
});
});