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;