Completely updated React, fixed #11, (hopefully)
This commit is contained in:
22
goTorrentWebUI/node_modules/material-ui/node_modules/jss-default-unit/lib/index.test.js
generated
vendored
22
goTorrentWebUI/node_modules/material-ui/node_modules/jss-default-unit/lib/index.test.js
generated
vendored
@@ -14,6 +14,10 @@ var _jss = require('jss');
|
||||
|
||||
var _commonTags = require('common-tags');
|
||||
|
||||
var _zenObservable = require('zen-observable');
|
||||
|
||||
var _zenObservable2 = _interopRequireDefault(_zenObservable);
|
||||
|
||||
var _index = require('./index');
|
||||
|
||||
var _index2 = _interopRequireDefault(_index);
|
||||
@@ -352,4 +356,22 @@ describe('jss-default-unit', function () {
|
||||
(0, _expect2['default'])(sheet.toString()).to.be((0, _commonTags.stripIndent)(_templateObject));
|
||||
});
|
||||
});
|
||||
|
||||
describe('support observable values', function () {
|
||||
var sheet = void 0;
|
||||
|
||||
beforeEach(function () {
|
||||
sheet = jss.createStyleSheet({
|
||||
a: {
|
||||
width: new _zenObservable2['default'](function (observer) {
|
||||
observer.next(1);
|
||||
})
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should add default unit', function () {
|
||||
(0, _expect2['default'])(sheet.toString()).to.be((0, _commonTags.stripIndent)(_templateObject));
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user