Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -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));
});
});
});