ember-cli-test-helpers
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,3 +0,1 @@ | ||
import Ember from "ember"; | ||
var assertElement = function(selector, type, count) { | ||
@@ -51,3 +49,3 @@ var element = find(selector); | ||
if (!text) { | ||
Ember.assert("Text must be passed to the isTextButton assertion function"); | ||
ok(false, "Text must be passed to the isTextButton assertion function"); | ||
} | ||
@@ -75,3 +73,3 @@ | ||
if (!text) { | ||
Ember.assert("Text must be passed to the isLink assertion function"); | ||
ok(false, "Text must be passed to the isLink assertion function"); | ||
} | ||
@@ -93,3 +91,3 @@ | ||
if (expected.length > 1) { | ||
Ember.assert("Too many elements for selector " + selector + " found that were expected to have focus (" + | ||
ok(false, "Too many elements for selector " + selector + " found that were expected to have focus (" + | ||
expected.length + "); use a more specific selector"); | ||
@@ -100,3 +98,3 @@ return; | ||
if (focused.length === 0) { | ||
Ember.assert("Expected " + selector + " to have focus, but no element currently has focus"); | ||
ok(false, "Expected " + selector + " to have focus, but no element currently has focus"); | ||
} else { | ||
@@ -103,0 +101,0 @@ if (focused.is(expected)) { |
@@ -110,2 +110,5 @@ import Ember from "ember"; | ||
console.log(name + " data:"); | ||
if(typeof data === "string") { | ||
data = JSON.parse(data); | ||
} | ||
for(var key in data) { | ||
@@ -112,0 +115,0 @@ if(data.hasOwnProperty(key)) { |
{ | ||
"name": "ember-cli-test-helpers", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A collection of test helpers for ember web applications", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
13493
11
284
2