UNPKG

hamjest

Version:

A library of composable matchers for defining meaningful and readable assertions in JavaScript.

22 lines (17 loc) 368 B
'use strict'; const _ = require('lodash'); const Matcher = require('./Matcher'); function IsAnything() { return _.create(new Matcher(), { matches: function () { return true; }, describeTo: function (description) { description.append('anything'); } }); } IsAnything.anything = function () { return new IsAnything(); }; module.exports = IsAnything;