Socket
Socket
Sign inDemoInstall

karma-phantomjs-shim

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-phantomjs-shim

Provides shims for PhantomJS


Version published
Weekly downloads
5K
decreased by-6.99%
Maintainers
1
Install size
10.0 kB
Created
Weekly downloads
 

Readme

Source

karma-phantomjs-shim

Provides shims when running tests in PhantomJS.

Use

Install the plugin with npm:

npm install karma-phantomjs-shim

Configure Karma to load the plugin as a framework:

module.exports = function(config) {
  config.set({
    frameworks: ['phantomjs-shim']
    // additional settings here ...
  });
};

If you've defined the plugins section in your Karma config file you'll also need to add a karma-phantomjs-shim entry to your plugins array:

module.exports = function(config) {
  config.set({
    // [...]
    plugins: ['karma-phantomjs-shim']
    // [...]
  });
};

Shims

  • CustomEvent
  • Function.prototype.bind
  • Object.assign
  • String.prototype.includes
  • String.prototype.repeat
  • String.prototype.startsWith
  • requestAnimationFrame

Want more? Pull requests welcome!

Keywords

FAQs

Last updated on 23 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc