0.1.0 • Published 7 years ago

chai-wildcard v0.1.0

Weekly downloads
79
License
MIT
Repository
gitlab
Last release
7 years ago

chai-wildcard NPM version

A chai plugin that adds .matchWildcard

This is mainly a wrapper for matcher module.

Installation

$ npm install --save-dev chai-wildcard

Usage

const chaiWildcard = require('chai-wildcard');
const chai = require("chai");

chai.use(chaiWildcard);
const { expect } = chai;

expect('some string').to.match.wildcard('some*')
  .and.match('!something else');

License

MIT © OlinData BV

0.1.0

7 years ago