import { _instanceOf } from "../../utility/others/_instanceOf";
describe('_instanceOf tests...', () => {
test('_instanceOf should return the correct result', () => {
interface PersonConstructor {
interface PersonInterface {
class Person implements PersonInterface {
const expected = [true, true, true, true, false, false, false,];
received.forEach((v, i) => {
const result = _instanceOf(v.left, v.right);
expect(result).toBe(expected[i]);