generator-ember-plus
Version:
Yeoman generator for Ember with added functionality
21 lines (13 loc) • 743 B
JavaScript
/*jshint undef:false */
document.write('<div id="ember-testing-container"><div id="ember-testing"></div></div>');
document.write('<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 800px; height: 500px; overflow: auto; z-index: 9999; border: 5px solid #ccc; } #ember-testing { zoom: 80%; }</style>');
var expect = chai.expect;
var assert = chai.assert;
var should = chai.should();
chai.Assertion.includeStack = true;
<%= _.classify(appname) %>.rootElement = "#ember-testing";
Ember.Test.adapter = Ember.Test.MochaAdapter.create();
<%= _.classify(appname) %>.setupForTesting();
<%= _.classify(appname) %>.injectTestHelpers();
window.start = function () {};
window.stop = function () {};