@hipay/hipay-material-ui 3.1.0 → 3.2.0-PSYCHE-2816
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HiCell/CellRate.js +8 -4
- package/HiChip/HiChip.js +9 -1
- package/HiForm/HiPasswordField.js +1 -1
- package/HiIcon/HiIcon.js +3 -5
- package/HiSelectableList/HiSelectableListItem.js +178 -238
- package/es/HiCell/CellRate.js +8 -4
- package/es/HiChip/HiChip.js +9 -1
- package/es/HiForm/HiPasswordField.js +1 -1
- package/es/HiIcon/HiIcon.js +3 -5
- package/es/HiSelectableList/HiSelectableListItem.js +178 -238
- package/es/utils/helpers.js +2 -2
- package/package.json +2 -3
- package/utils/helpers.js +2 -2
- package/es/hi-svg-icons/index.text.js +0 -51
- package/hi-svg-icons/index.text.js +0 -51
@@ -1,51 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
|
-
var _fs = _interopRequireDefault(require("fs"));
|
6
|
-
|
7
|
-
var _path = _interopRequireDefault(require("path"));
|
8
|
-
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
|
11
|
-
var _chai = require("chai");
|
12
|
-
|
13
|
-
var _testUtils = require("../test-utils");
|
14
|
-
|
15
|
-
describe('hi-svg-icons', function () {
|
16
|
-
var shallow;
|
17
|
-
before(function () {
|
18
|
-
shallow = (0, _testUtils.createShallow)();
|
19
|
-
});
|
20
|
-
it('should be able to render all of them', function (done) {
|
21
|
-
// This test can only be run on the node env
|
22
|
-
if (!_fs.default.readdir) {
|
23
|
-
done();
|
24
|
-
return;
|
25
|
-
}
|
26
|
-
|
27
|
-
_fs.default.readdir(__dirname, function (err, files) {
|
28
|
-
files.forEach(function (file) {
|
29
|
-
// Ignore no js files and tests
|
30
|
-
if (file.indexOf('.js') === -1 || file.indexOf('text.js') > -1) {
|
31
|
-
return;
|
32
|
-
} // eslint-disable-next-line global-require, import/no-dynamic-require
|
33
|
-
|
34
|
-
|
35
|
-
var fileLoaded = require(_path.default.join(__dirname, file));
|
36
|
-
|
37
|
-
if (!fileLoaded.default) {
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
|
41
|
-
var Icon = fileLoaded.default;
|
42
|
-
var wrapper = shallow(_react.default.createElement(Icon, {
|
43
|
-
className: "foo"
|
44
|
-
}));
|
45
|
-
|
46
|
-
_chai.assert.strictEqual(wrapper.hasClass('foo'), true);
|
47
|
-
});
|
48
|
-
done();
|
49
|
-
});
|
50
|
-
});
|
51
|
-
});
|