UNPKG

react-kendo

Version:

React Component Library for Kendo UI Widgets. There exists a React Component named for every Kendo widget in the kendo.ui namespace. Tested on React 0.12 and KendoUI 2014.3.1411.

42 lines (36 loc) 976 B
var _ = require('lodash'); var assert = require('assert'); var jsdom = require('jsdom'); describe('react-kendo', function () { var env; describe('pre-requisites', function () { it('should check prerequisite existence of kendo.ui', function () { assert.throws(function () { require('./'); }, Error); }); }); describe('sanity', function () { before(function (done) { this.timeout(10000); env = jsdom.env({ html: '<div />', scripts: [ 'https://code.jquery.com/jquery-2.1.3.min.js', 'http://cdn.kendostatic.com/2014.3.1411/js/kendo.all.min.js' ], done: function (err, window) { global.kendo = window.kendo; done(err); } }); }); it('should load kendo.ui widgets', function () { var k = require('./'); assert(_.isObject(k)); assert(k.Grid); assert(k.Splitter); assert(k.TreeView); }); }); });