UNPKG

cpt-waffle-lotide

Version:
13 lines (11 loc) 471 B
import {inspect} from 'util'; import eqObjects from './eqObjects'; import { objectInterface } from './interfaces'; const assertObjectsEqual = (actual:objectInterface, expected:objectInterface):void => { if (eqObjects(actual, expected)) { console.log(`✅✅✅ Assertion Passed: ${inspect(actual)} === ${inspect(expected)}`); return; } console.log(`🛑🛑🛑 Assertion Failed: ${inspect(actual)} !== ${inspect(expected)}`) } export default assertObjectsEqual;