New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-internal-test-helpers

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.9.0 to 0.9.1

lib/helpers/mock-blueprint-task-for.js

19

lib/helpers/disable-npm-on-blueprint.js
'use strict';
var assert = require('./assert');
var originTaskFor;
var Promise = require('rsvp');
var MockBlueprintTaskFor = require('./mock-blueprint-task-for');
module.exports = {
disableNPM: function(Blueprint) {
originTaskFor = Blueprint.prototype.taskFor;
Blueprint.prototype.taskFor = function(taskName) {
// we don't actually need to run the npm-install task, so lets mock it to
// speedup tests that need it
assert.equal(taskName, 'npm-install');
return {
run: function() {
return Promise.resolve();
}
};
};
MockBlueprintTaskFor.disableTasks(Blueprint, ['npm-install']);
},
restoreNPM: function(Blueprint) {
Blueprint.prototype.taskFor = originTaskFor;
MockBlueprintTaskFor.restoreTasks(Blueprint);
}
};
{
"name": "ember-cli-internal-test-helpers",
"version": "0.9.0",
"version": "0.9.1",
"description": "Internal test helpers for ember-cli",

@@ -8,5 +8,3 @@ "main": "index.js",

"coverage": "istanbul cover node_modules/mocha/bin/_mocha",
"test": "mocha",
"preversion": "npm test",
"postversion": "git push origin master --follow-tags && npm publish"
"test": "mocha"
},

@@ -13,0 +11,0 @@ "repository": {

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