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 1.5.2 to 1.6.0-beta.1

2

package.json
{
"name": "ember-cli-test-helpers",
"version": "1.5.2",
"version": "1.6.0-beta.1",
"description": "A collection of test helpers for ember web applications",

@@ -5,0 +5,0 @@ "scripts": {

@@ -12,2 +12,8 @@ import Ember from "ember";

request.method = request.method || "GET";
if(request.data) {
var contentType = "application/json";
} else {
var contentType = "application/x-www-form-urlencoded";
}
request.contentType = request.contentType || contentType;
return request;

@@ -33,9 +39,14 @@ };

var stubEndpointForHttpRequest = function(url, json, verb, status, post_data) {
var request = {
url: url,
method: verb || "GET",
data: post_data,
cache: false,
contentType: "application/x-www-form-urlencoded"
};
if(post_data) {
request.contentType = "application/json";
}
return Ember.$.fauxjax.new({
request: {
url: url,
method: verb || "GET",
data: post_data,
cache: false
},
request: request,
response: {

@@ -42,0 +53,0 @@ status: status || 200,

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