mirror of
https://github.com/apache/superset.git
synced 2024-09-19 12:09:42 -04:00
8 lines
234 B
TypeScript
8 lines
234 B
TypeScript
|
import isRequired from '../../src/utils/isRequired';
|
||
|
|
||
|
describe('isRequired(field)', () => {
|
||
|
it('should throw error with the given field in the message', () => {
|
||
|
expect(() => isRequired('myField')).toThrowError(Error);
|
||
|
});
|
||
|
});
|