{:uriI"½file:///Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/core_spec.js?type=application/javascript&pipeline=self&id=7352f89fe53db37939a377f69c3df1f07255396ebe8f11c2f0619c10621698f4:ET:load_pathI"@/Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts;F: filenameI"M/Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/core_spec.js;T: nameI"core_spec;T:logical_pathI"core_spec.self.js;T:content_typeI"application/javascript;T: sourceI"odescribe("Rev", function() { var reference = {render: function() {}}; beforeEach(function(){ this.componentSpec = {render: function() { return React.createElement('span'); }}; }); it("can register a new object", function() { Rev.registerObject('_registerObjectTest', reference); expect(Rev._registerObjectTest).toBe(reference); }); it("can register a new app object", function() { Rev.appObject('_appObjectTest', reference); expect(App._appObjectTest).toBe(reference); }); it("can register a new component", function() { Rev.registerComponent('_registerComponent', this.componentSpec); expect(Rev.Components._registerComponent).toBeDefined(); }); it("can register a new app component", function() { Rev.appComponent('_appComponent', this.componentSpec); expect(App.Components._appComponent).toBeDefined(); }); it("warns you if you attempt to mixin which doesn't exist", function() { spyOn(console, 'warn'); Rev.registerComponent('_nullMixinWarning', {mixins: [null], render: function() {}}); expect(console.warn).toHaveBeenCalled(); }); it("includes the core mixin", function() { var arrayWithCore = jasmine.arrayContaining([Rev.Mixins.Core]); Rev.registerComponent('_coreMixinFunctions', this.componentSpec); expect(this.componentSpec.mixins).toEqual(arrayWithCore); }); it("can render a component to a string with the ujs class", function() { var result; Rev.appComponent('Ujs.Index', this.componentSpec); result = Rev.viewToString('ujs/index', '{}'); expect(result).toContain('data-react-class="App.Components.Main"'); }); }); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"[file-digest:///Users/prehnra/src/revelry_core/spec/dummy/spec/javascripts/core_spec.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%]ÞÞzP9`„ÏïˆãZ9øv}SêÌ.A©ä]œ‘: lengthio:integrityI"9sha-256-XRTe3noPUDlghM/viOMQWjkV+HZ9U+oWzC5BqeRdnJE=;T:dependencies_digest"%2 3” Áøgcýl™¤y¬¦‚VzÌßvG~“ÅZ[ :idI"E7352f89fe53db37939a377f69c3df1f07255396ebe8f11c2f0619c10621698f4;F: mtimel+º%QU