Sha256: 01460d619de84076a6ff8b4f197c2b070893c47148576bdcf9b1a9bd5a0adcc1

Contents?: true

Size: 1.74 KB

Versions: 7

Compression:

Stored size: 1.74 KB

Contents

{:uriI"file:///Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/extensions/mixins_spec.js?type=application/javascript&pipeline=self&id=7e5623e8be9656fafecccedf2515803ca746bb6962331c47779258340bc2f953: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"Zdescribe('Rev', function(){
  it('can include mixins to function classes', function() {
    var mixin = {
      componentDidMount: function() {}
    };
    var fnClass = Rev.appComponent('Foo', 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(fnClass, {}), element);

    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"%8vAh|)\Kt(q:lengthiZ:integrityI"9sha-256-gBTzzDiVdqW6EY7CQWgIfNbczylc855LdNUZ+ZGHKHE=;T:dependencies_digest"%5ALFJw~mᡙ5MJzDa6:idI"E7e5623e8be9656fafecccedf2515803ca746bb6962331c47779258340bc2f953;F:
mtimel+{RU

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
revelry_core-0.1.12.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache
revelry_core-0.1.11.6 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache
revelry_core-0.1.10.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache
revelry_core-0.1.10.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache
revelry_core-0.1.9.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache
revelry_core-0.1.9.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache
revelry_core-0.1.8.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/9IpwFw02YELidXu-r2Rq7fSGZ_it2CRxztxvtkKg4MM.cache