feat(tests): add cypress

This commit is contained in:
moklick
2019-09-25 21:33:20 +02:00
parent f6513eff10
commit a6dbd8ebe1
50 changed files with 97906 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
import React from 'react';
import { Handle } from '../../../src';
export default({ data, styles }) => (
<div
style={{ background: '#FFCC00', padding: 10, borderRadius: 2, ...styles }}
>
<Handle type="target" position="left" style={{ background: '#999' }} />
<div>{data.input}</div>
<input onChange={(e) => data.onChange(e.target.value, data)} />
<Handle type="source" position="right" style={{ background: '#999' }} />
</div>
);