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

ember-cli-custom-assertions

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-custom-assertions - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

14

addon-test-support/index.js

@@ -13,3 +13,3 @@ /* global requirejs */

assertionCache = entries.reduce(function(entries, entry) {
assertionCache = entries.reduce(function (entries, entry) {
if (entry.match(pattern)) {

@@ -34,4 +34,4 @@ let splitEntry = entry.split('/');

Object.keys(_assertions).forEach(function(assertion) {
window.QUnit.assert[assertion] = function() {
Object.keys(_assertions).forEach(function (assertion) {
window.QUnit.assert[assertion] = function () {
let fn = _assertions[assertion];

@@ -52,3 +52,3 @@ let args = Array.prototype.slice.call(arguments);

Object.keys(_assertions).forEach(function(assertion) {
Object.keys(_assertions).forEach(function (assertion) {
delete window.QUnit.assert[assertion];

@@ -58,9 +58,9 @@ });

export default function(hooks) {
hooks.beforeEach(function() {
export default function (hooks) {
hooks.beforeEach(function () {
assertionInjector(this.owner);
});
hooks.afterEach(function() {
hooks.afterEach(function () {
assertionCleanup();
});
}

@@ -1,2 +0,2 @@

var stringUtil = require('ember-cli-string-utils');
const { dasherize, camelize } = require('ember-cli-string-utils');

@@ -6,13 +6,13 @@ module.exports = {

locals: function(options) {
var entity = options.entity;
var rawName = entity.name;
var name = stringUtil.dasherize(rawName);
var camelName = stringUtil.camelize(rawName);
locals: function (options) {
var entity = options.entity;
var rawName = entity.name;
var name = dasherize(rawName);
var camelName = camelize(rawName);
return {
name: name,
camelName: camelName
camelName: camelName,
};
}
}
},
};
'use strict';
module.exports = function(/* environment, appConfig */) {
return { };
module.exports = function (/* environment, appConfig */) {
return {};
};
'use strict';
module.exports = {
name: require('./package').name
name: require('./package').name,
};
{
"name": "ember-cli-custom-assertions",
"version": "0.2.0",
"version": "0.3.0",
"description": "Easily add custom assertions to your Ember test suite",

@@ -16,39 +16,61 @@ "keywords": [

"scripts": {
"build": "ember build",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"build": "ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:!(fix)\"",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
"lint:hbs:fix": "ember-template-lint . --fix",
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "ember try:each"
"test": "npm-run-all lint test:*",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each"
},
"dependencies": {
"ember-cli-babel": "^6.16.0",
"ember-cli-string-utils": "^1.0.0"
"ember-cli-babel": "^7.26.11",
"ember-cli-string-utils": "^1.1.0"
},
"devDependencies": {
"@ember/optional-features": "^0.7.0",
"broccoli-asset-rev": "^2.7.0",
"ember-cli": "~3.5.0",
"ember-cli-dependency-checker": "^3.0.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-htmlbars": "^3.0.0",
"ember-cli-htmlbars-inline-precompile": "^1.0.3",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-qunit": "^4.3.2",
"ember-cli-shims": "^1.2.0",
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.6.0",
"@embroider/test-setup": "^0.49.0",
"@glimmer/component": "^1.0.4",
"@glimmer/tracking": "^1.0.4",
"babel-eslint": "^10.1.0",
"broccoli-asset-rev": "^3.0.0",
"ember-auto-import": "^2.2.4",
"ember-cli": "~4.1.0",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-htmlbars": "^6.0.1",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.1.0",
"ember-cli-terser": "^4.0.2",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.1.0",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^5.0.1",
"ember-source": "~3.5.0",
"ember-source-channel-url": "^1.1.0",
"ember-try": "^1.0.0",
"eslint-plugin-ember": "^5.2.0",
"eslint-plugin-node": "^7.0.1",
"loader.js": "^4.7.0"
"ember-export-application-global": "^2.0.1",
"ember-load-initializers": "^2.1.2",
"ember-page-title": "^7.0.0",
"ember-qunit": "^5.1.5",
"ember-resolver": "^8.0.3",
"ember-source": "~4.1.0",
"ember-source-channel-url": "^3.0.0",
"ember-template-lint": "^3.15.0",
"ember-try": "^2.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-ember": "^10.5.8",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-qunit": "^7.2.0",
"loader.js": "^4.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"qunit": "^2.17.2",
"qunit-dom": "^2.0.0",
"webpack": "^5.65.0"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
"node": "12.* || 14.* || >= 16"
},
"ember": {
"edition": "octane"
},
"ember-addon": {

@@ -55,0 +77,0 @@ "configPath": "tests/dummy/config"

@@ -1,2 +0,5 @@

import { assertionInjector as _assertionInjector, assertionCleanup } from 'ember-cli-custom-assertions/test-support';
import {
assertionInjector as _assertionInjector,
assertionCleanup,
} from 'ember-cli-custom-assertions/test-support';
import { deprecate } from '@ember/debug';

@@ -9,3 +12,8 @@ import config from '../config/environment';

false,
{ id: 'ember-cli-custom-assertions.test-support', until: '0.2.0' }
{
id: 'ember-cli-custom-assertions.test-support',
since: '0.2.0',
until: '1.0.0',
for: 'ember-cli-custom-assertions',
}
);

@@ -17,3 +25,8 @@

false,
{ id: 'ember-cli-custom-assertions.missing-context', until: '0.2.0' }
{
id: 'ember-cli-custom-assertions.missing-context',
since: '0.2.0',
until: '1.0.0',
for: 'ember-cli-custom-assertions',
}
);

@@ -20,0 +33,0 @@

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