This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
TripSit_Suite/node_modules/@sinonjs/samsam/lib/create-matcher/assert-matcher.js

18 lines
324 B
JavaScript
Raw Permalink Normal View History

"use strict";
var isMatcher = require("./is-matcher");
/**
* Throws a TypeError when `value` is not a matcher
*
* @private
* @param {*} value The value to examine
*/
function assertMatcher(value) {
if (!isMatcher(value)) {
throw new TypeError("Matcher expected");
}
}
module.exports = assertMatcher;