UNPKG

hamjest

Version:

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

22 lines (17 loc) 380 B
'use strict'; const _create = require('lodash/create'); 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;