chai-wildcard
v0.1.0
Published
A chai plugin that adds .matchWildcard
Downloads
737
Readme
chai-wildcard
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