UNPKG

chai-callslike

Version:

A simple sinon-chai assertion to validate many aspects of stub calls

11 lines (10 loc) 336 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isJsonComparable = void 0; function isJsonComparable(value) { return (value && typeof value === 'object' && typeof value.test !== 'function' && Object.keys(value).length > 0); } exports.isJsonComparable = isJsonComparable;