Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
2,741 additions
and
1,685 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
"react" | ||
], | ||
"plugins": [ | ||
"react-hot-loader/babel", | ||
"transform-es2015-modules-commonjs" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ public/ | |
test/ | ||
webpack.config.js | ||
showcase.gif | ||
lib/__tests__ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use strict'; | ||
|
||
var _react = require('react'); | ||
|
||
var React = _interopRequireWildcard(_react); | ||
|
||
var _enzyme = require('enzyme'); | ||
|
||
var _index = require('../index'); | ||
|
||
var _index2 = _interopRequireDefault(_index); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
|
||
describe('SvgLines', function () { | ||
var wrapper = void 0; | ||
|
||
it('renders as expected', function () { | ||
wrapper = (0, _enzyme.shallow)(React.createElement( | ||
_index2.default, | ||
null, | ||
React.createElement('svg', null) | ||
)); | ||
|
||
expect(wrapper.type()).toBe('span'); | ||
expect(wrapper.prop('className')).toContain('mt-init'); | ||
expect(wrapper.find('style')).toHaveLength(1); | ||
expect(wrapper.find('svg')).toHaveLength(1); | ||
}); | ||
}); |
Oops, something went wrong.