ember-cli-test-helpers
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -0,1 +1,2 @@ | ||
import Ember from "ember"; | ||
import TestDone from "ember-cli-test-helpers/tests/helpers/test-done"; | ||
@@ -5,5 +6,5 @@ | ||
TestDone.create(details).testDoneCallback(); | ||
$.fauxjax.clear(); | ||
Ember.$.fauxjax.clear(); | ||
}; | ||
export default testDone; |
@@ -88,4 +88,4 @@ import Ember from "ember"; | ||
var isFocused = function(selector) { | ||
var focused = $(document.activeElement); | ||
var expected = $(selector); | ||
var focused = Ember.$(document.activeElement); | ||
var expected = Ember.$(selector); | ||
@@ -122,3 +122,3 @@ if (expected.length > 1) { | ||
element.checked = false; | ||
$(element).trigger("change"); | ||
Ember.$(element).trigger("change"); | ||
} | ||
@@ -125,0 +125,0 @@ }); |
@@ -0,3 +1,5 @@ | ||
import Ember from "ember"; | ||
var stubEndpointForHttpRequest = function(url, json, verb, status, post_data) { | ||
return $.fauxjax.new({ | ||
return Ember.$.fauxjax.new({ | ||
type: verb || "GET", | ||
@@ -16,5 +18,5 @@ url: url, | ||
if (id) { | ||
$.fauxjax.remove(id); | ||
Ember.$.fauxjax.remove(id); | ||
} else { | ||
$.fauxjax.clear(); | ||
Ember.$.fauxjax.clear(); | ||
} | ||
@@ -21,0 +23,0 @@ }; |
import Ember from "ember"; | ||
import QUnit from "qunit"; | ||
var fauxjax = Ember.$.fauxjax; | ||
var TestDone = Ember.Object.extend({ | ||
@@ -11,4 +13,4 @@ testDoneCallback: function() { | ||
var self = this; | ||
$.fauxjax.unfired().forEach(function(unfired){ | ||
var found = $.fauxjax.unhandled().filter(function(unhandled){ | ||
fauxjax.unfired().forEach(function(unfired){ | ||
var found = fauxjax.unhandled().filter(function(unhandled){ | ||
return unfired.url === unhandled.url && | ||
@@ -29,4 +31,4 @@ unfired.type === unhandled.type; | ||
var self = this; | ||
$.fauxjax.unhandled().forEach(function(unhandled){ | ||
var found = $.fauxjax.unfired().filter(function(unfired){ | ||
fauxjax.unhandled().forEach(function(unhandled){ | ||
var found = fauxjax.unfired().filter(function(unfired){ | ||
return unfired.url === unhandled.url && | ||
@@ -33,0 +35,0 @@ unfired.type === unhandled.type; |
{ | ||
"name": "ember-cli-test-helpers", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "A collection of test helpers for ember web applications", | ||
@@ -27,16 +27,17 @@ "scripts": { | ||
"broccoli-asset-rev": "^2.0.0", | ||
"broccoli-ember-hbs-template-compiler": "^1.6.1", | ||
"ember-cli": "0.1.15", | ||
"ember-cli-6to5": "^3.0.0", | ||
"ember-cli": "0.2.0", | ||
"ember-cli-app-version": "0.3.2", | ||
"ember-cli-babel": "^4.0.0", | ||
"ember-cli-app-version": "0.3.1", | ||
"ember-cli-content-security-policy": "0.3.0", | ||
"ember-cli-dependency-checker": "0.0.7", | ||
"ember-cli-dependency-checker": "0.0.8", | ||
"ember-cli-htmlbars": "0.7.4", | ||
"ember-cli-inject-live-reload": "^1.3.0", | ||
"ember-cli-qunit": "0.3.7", | ||
"ember-cli-qunit": "0.3.9", | ||
"ember-cli-uglify": "1.0.1", | ||
"ember-export-application-global": "^1.0.2", | ||
"express": "^4.8.5", | ||
"glob": "^4.0.5", | ||
"phantomjs": "~1.9.13", | ||
"bower": "^1.3.12" | ||
"express": "4.8.5", | ||
"glob": "4.0.5", | ||
"phantomjs": "1.9.13", | ||
"bower": "1.3.12" | ||
}, | ||
@@ -43,0 +44,0 @@ "keywords": [ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
13099
12
252