UNPKG

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