You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

jasmine-matchers-loader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-matchers-loader

An API to register Jasmine Matchers compatible with Jasmine v1 and v2


Version published
Weekly downloads
2K
decreased by-13.83%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

jasmine-matchers-loader

An API to register Jasmine Matchers compatible with Jasmine v1 and v2.

npm downloads Twitter Follow @fold_left on Twitter GitHub stars GitHub followers

This project was previously part of the implementation of Jasmine Matchers and has been taken out to help other people share their own Matchers.

Usage

The /src directory of Jasmine Matchers serves as an example of a many different types of matcher functions using this loader.

CommonJS

var jasmineMatchers = require('jasmine-matchers-loader');

jasmineMatchers.add({
    toBeJustAnExample: function(actual) {
        return actual === 'Just an example';
    }
});

Browser

<script src="dist/jasmine-matchers-loader.js"></script>
<script>
    window.jasmineMatchers.add({
        toBeJustAnExample: function(actual) {
            return actual === 'Just an example';
        }
    });
</script>

Keywords

FAQs

Package last updated on 16 Feb 2016

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc