ember-qunit
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -10,11 +10,11 @@ "use strict"; | ||
moduleFor('component:' + name, description, callbacks, function(container, context, defaultSubject) { | ||
var templateName = 'template:components/' + name; | ||
var layoutName = 'template:components/' + name; | ||
var template = resolver.resolve(templateName); | ||
var layout = resolver.resolve(layoutName); | ||
if (template) { | ||
container.register(templateName, template); | ||
container.injection('component:' + name, 'template', templateName); | ||
if (layout) { | ||
container.register(layoutName, layout); | ||
container.injection('component:' + name, 'layout', layoutName); | ||
} | ||
context.dispatcher = Ember.EventDispatcher.create(); | ||
@@ -21,0 +21,0 @@ context.dispatcher.setup({}, '#ember-testing'); |
@@ -7,6 +7,13 @@ "use strict"; | ||
moduleFor('model:' + name, description, callbacks, function(container, context, defaultSubject) { | ||
// custom model specific awesomeness | ||
container.register('store:main', DS.Store); | ||
container.register('adapter:application', DS.FixtureAdapter); | ||
if (DS._setupContainer) { | ||
DS._setupContainer(container); | ||
} else { | ||
container.register('store:main', DS.Store); | ||
} | ||
var adapterFactory = container.lookupFactory('adapter:application'); | ||
if (!adapterFactory) { | ||
container.register('adapter:application', DS.FixtureAdapter); | ||
} | ||
context.__setup_properties__.store = function(){ | ||
@@ -13,0 +20,0 @@ return container.lookup('store:main'); |
{ | ||
"name": "ember-qunit", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "unit test helpers for ember", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/main.js", |
@@ -137,2 +137,3 @@ Ember QUnit | ||
$ bower install | ||
$ npm install -g karma-cli broccoli-cli | ||
$ broccoli serve | ||
@@ -139,0 +140,0 @@ # new tab |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14331
14
199
143