import test from 'tape';
import React from 'react';
import sloppy from '../src/sloppy';
import exact from '..';
test('sloppy', (t) => {
t.equal(typeof sloppy, 'function', 'export is a function');
class Component extends React.Component {
render() { return null; }
}
Component.propTypes = exact({});
t['throws'](() => , EvalError, 'works with exact');
Component.propTypes = sloppy(Component.propTypes);
t.doesNotThrow(() => , 'sloppy un-exacts it');
t.end();
});