1 | /**
|
2 | * Test case for component.
|
3 | * Runs with mocha.
|
4 | */
|
5 | ;
|
6 |
|
7 | const ApDraggable = require('../lib/ap_draggable.js'),
|
8 | assert = require('assert'),
|
9 | React = require('react');
|
10 |
|
11 |
|
12 | it('ApDraggable', (done) => {
|
13 | var html = React.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 |
|