UNPKG

hamjest

Version:

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

10 lines (6 loc) 162 B
'use strict'; const AssertionError = require('assertion-error'); function fail(reason) { throw new AssertionError(reason, {}, fail); } module.exports = fail;