UNPKG

cloudhubui

Version:

Various components to use in react projects

22 lines (16 loc) 934 B
"use strict"; var _chai = require("chai"); var _index = _interopRequireDefault(require("../dist/index.umd")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } describe('The DatePicker Component', function () { describe('component', function () { it('It should return a function', function () { (0, _chai.expect)(_index.default).to.satisfy(isFunction); function isFunction(args) { console.log(_typeof(args)); return typeof args === 'function'; } }); }); });