1 | /**
|
2 | * Test case for component.
|
3 | * Runs with mocha.
|
4 | */
|
5 |
|
6 |
|
7 | const ApDraggable = require('../lib/ap_draggable.js').default
|
8 | const assert = require('assert')
|
9 | const React = require('react')
|
10 | const ReactDOM = require('react-dom/server')
|
11 |
|
12 | it('ApDraggable', (done) => {
|
13 | let html = ReactDOM.renderToString(
|
14 | React.createElement('html',
|
15 | {},
|
16 | React.createElement(ApDraggable, {},
|
17 | React.createElement('div', {}, 'foo')
|
18 | )
|
19 | )
|
20 | )
|
21 | console.log(html)
|
22 | assert.ok(html)
|
23 | done()
|
24 | })
|
25 |
|
26 | /* global it */ |
\ | No newline at end of file |