Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
427 Bytes
import noop from '../../utils/noop';
import objectHasFunction from '../../utils/objectHasFunction';
describe('objectHasFunction', () => {
it('should detect if any object has function', () => {
expect(objectHasFunction({})).toBeFalsy();
expect(
objectHasFunction({
test: '',
}),
).toBeFalsy();
expect(
objectHasFunction({
test: noop,
}),
).toBeTruthy();
});
});