/** * Created by mkumar1 on 09-05-2017. */ describe('Testing Organization VO', function () { var organizationVo; it('should create object and test properties', function () { organizationVo = new OrganizationVO(); expect(organizationVo.name).toEqual(''); expect(Object.keys(organizationVo.attributeMap).length).toEqual(0); // testing blank object }); it('should test the inheritance with base', function() { expect(organizationVo instanceof BaseVO).toBeTruthy(); }); it('should verify all the properties', function () { var returnVal = organizationVo.getProps(); expect(returnVal).toEqual([ 'id', 'createDate', 'name', 'attributeMap' ]); }); it('should test the post build features', function () { organizationVo.postBuild(); expect(organizationVo.companyName).toEqual(organizationVo.attributeMap.companyNam); }); });