UNPKG

sinon-chai-calls-assertion

Version:

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

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