This package has been deprecated

Author message:

jasmine-matchers-loader has been deprecated, please migrate to https://github.com/JamieMason/add-matchers

jasmine-matchers-loader

0.1.0 • Public • Published

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> 

Readme

Keywords

Package Sidebar

Install

npm i jasmine-matchers-loader

Weekly Downloads

1,478

Version

0.1.0

License

MIT

Last publish

Collaborators

  • fold_left