ember-test-helpers
Advanced tools
Comparing version 0.5.32 to 0.5.33
import TestModule from './test-module'; | ||
import Ember from 'ember'; | ||
import { getResolver } from './test-resolver'; | ||
import hasEmberVersion from './has-ember-version'; | ||
@@ -87,3 +86,3 @@ import { preGlimmerSetupIntegrationForComponent } from './-legacy-overrides'; | ||
var _this = this; | ||
var resolver = getResolver(); | ||
var resolver = this.resolver; | ||
var context = this.context; | ||
@@ -90,0 +89,0 @@ |
@@ -17,2 +17,7 @@ import Ember from 'ember'; | ||
export default AbstractTestModule.extend({ | ||
init() { | ||
this._super(...arguments); | ||
this.resolver = this.callbacks.resolver || getResolver(); | ||
}, | ||
initSetupSteps() { | ||
@@ -70,3 +75,3 @@ this.setupSteps = []; | ||
setupContainer() { | ||
var resolver = getResolver(); | ||
var resolver = this.resolver; | ||
var items = buildRegistry(resolver); | ||
@@ -73,0 +78,0 @@ |
@@ -20,2 +20,3 @@ import Ember from 'ember'; | ||
this.callbacks = callbacks || {}; | ||
this.resolver = this.callbacks.resolver || getResolver(); | ||
@@ -238,3 +239,3 @@ if (this.callbacks.integration && this.callbacks.needs) { | ||
_setupContainer: function(isolated) { | ||
var resolver = getResolver(); | ||
var resolver = this.resolver; | ||
@@ -259,3 +260,3 @@ var items = buildRegistry(!isolated ? resolver : Object.create(resolver, { | ||
_setupIsolatedContainer: function() { | ||
var resolver = getResolver(); | ||
var resolver = this.resolver; | ||
this._setupContainer(true); | ||
@@ -262,0 +263,0 @@ |
{ | ||
"name": "ember-test-helpers", | ||
"version": "0.5.32", | ||
"version": "0.5.33", | ||
"description": "Helpers for testing Ember.js applications", | ||
@@ -5,0 +5,0 @@ "main": "lib/ember-test-helpers.js", |
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
89254
22
1139