Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-test-helpers

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-test-helpers - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

tmp/.metadata_never_index

3

addon/tests/helpers/fauxjax-testdone.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc