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

benderjs-jquery

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

benderjs-jquery

jQuery plugin for Bender.js

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

benderjs-jquery

jQuery plugin for Bender.js.

Creates tests for all versions of jQuery specified in bender.js configuration file. Appropriate version of jQuery will be downloaded from jQuery's CDN, cached and included in the test context.

Installation

npm install benderjs-jquery

Usage

Add benderjs-jquery to the plugins array in your bender.js configuration file:

var config = {
    applications: {...}

    browsers: [...],

    plugins: ['benderjs-jquery'], // load the plugin

    tests: {...}
};

module.exports = config;

Specify jQuery versions for a test group:

var config = {
    applications: {...}

    browsers: [...],

    plugins: ['benderjs-jquery'],

    tests: {
        Foo: {
            basePath: '',
            jQuery: ['1.7.2', '1.10.2', '2.0.1'], //define jQuery versions
            paths: [...]
        }
    }
};

module.exports = config;

Add jquery to the test's tags:

// sample test file: tests/test.js
/* bender-tags: foo, bar, jquery */

bender.test({...});

As a result 3 tests will be created:

  • tests/tests?jquery=1.7.2
  • tests/tests?jquery=1.10.2
  • tests/tests?jquery=2.0.1

License

MIT, for license details see: LICENSE.md.

Keywords

FAQs

Package last updated on 02 Oct 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc