Sha256: 1ab66f7dfdb296c51edc07bf309842d83ab6f858820203136b2f82b88d6d102b
Contents?: true
Size: 1.8 KB
Versions: 7
Compression:
Stored size: 1.8 KB
Contents
{:uriI"file:///Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/extensions/mixins_spec.js?type=application/javascript&pipeline=self&id=e897f709d5ed1a693d960520fe5119d2abe5bb4068747271e434d7db2a4e7a25:ET:load_pathI"@/Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts;F: filenameI"Z/Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/extensions/mixins_spec.js;T: nameI"extensions/mixins_spec;T:logical_pathI"#extensions/mixins_spec.self.js;T:content_typeI"application/javascript;T:sourceI"describe('Rev', function(){ it('can include mixins to function classes', function() { var mixin = { componentDidMount: function() {} }; Rev.appComponent('__mixinTest', function(props) { return { render: function() { return React.createElement('span', { className: 'FunctionClass' }); }, mixins: [mixin] } }); spyOn(mixin, 'componentDidMount'); var element = document.createElement('div'); React.render(React.createElement(App.Components.__mixinTest, {}), element); expect(Rev.__mixSpecIntoComponent).toBeDefined(); expect(mixin.componentDidMount).toHaveBeenCalled(); }); }); ;T: metadata{:dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"hfile-digest:///Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/extensions/mixins_spec.js;TT: requiredo;;{ :stubbedo;;{ : linkso;;{ :charsetI" utf-8;F:digest"%~i Y^Ց_uQ)H:lengthi:integrityI"9sha-256-fmkJlVkfXqMcytWRHV+bjxqqdYSoUemRwB/EKUiW2w8=;T:dependencies_digest"%Bu:ûȠ'&KW= :idI"Ee897f709d5ed1a693d960520fe5119d2abe5bb4068747271e434d7db2a4e7a25;F: mtimel+|RU
Version data entries
7 entries across 7 versions & 1 rubygems