import { getFunctionsOfInstance } from '../src/common/getFunctionsOfInstance'; describe('NestjsOemcController', () => { it('should be defined', () => { class Car{ constructor(private name: string){} getName = () => this.name; } const functions = getFunctionsOfInstance(new Car('hello')) const expected = ['getName','constructor'] console.log(functions); console.log(expected); expect(functions).toEqual(expected) }); });