Sign in
apache
/
superset
/
fc02f0c7fc19dd176920fda82d794aebe33c5169
/
.
/
superset-frontend
/
packages
/
superset-ui-core
/
test
/
utils
/
isRequired.test.ts
blob: 13b54791b3e1ba5c9878f2eca682a2e911dab1d3 [
file
] [
log
] [
blame
]
import
{
isRequired
}
from
'@superset-ui/core/src'
;
describe
(
'isRequired(field)'
,
()
=>
{
it
(
'should throw error with the given field in the message'
,
()
=>
{
expect
(()
=>
isRequired
(
'myField'
)).
toThrow
(
Error
);
});
});