mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-10 09:33:51 +00:00
Improved existing tests
This commit is contained in:
@@ -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' });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user