react-hold
Version:
Hold the empty presentational components in react.js
24 lines (19 loc) • 630 B
JavaScript
import PropTypes from 'prop-types';
import { color, width, height, cancelHold, targetProps } from '../shapes';
describe("Holder's default prop types", function () {
it('has "color" type', function () {
expect(color).toBe(PropTypes.string);
});
it('has "width" type', function () {
expect(width).toBe(PropTypes.number);
});
it('has "height" type', function () {
expect(height).toBe(PropTypes.number);
});
it('has "cancelHold" type', function () {
expect(cancelHold).toBe(PropTypes.func);
});
it('has "targetProps" type', function () {
expect(targetProps).toBe(PropTypes.object);
});
});