Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should accept a CSV of keys', () => {
const Child = sinon.stub().returns(<div>);
const Wrapped = withText('foo,bar,baz')(Child);
rndr(
);
expect(Child).to.have.been.calledOnce.and.calledWithMatch({ foo: '1', bar: '2', baz: '3' });
});
</div>