SmartIT_Extensions/BMC/smart-it-full/test/app/ticket/known-error-vo.spec.js

32 lines
1.3 KiB
JavaScript

/**
* Created by mkumar1 on 11-05-2017.
*/
describe('Testing KnownError VO', function () {
var knownErrorVo;
it(' should create object and test properties ', function () {
knownErrorVo = new KnownErrorVO();
expect(knownErrorVo.type).toEqual(EntityVO.TYPE_KNOWNERROR);
expect(knownErrorVo.crossLaunchURL).toEqual('');
expect(knownErrorVo.icon).toEqual('icon-file_exclamation_o');
expect(knownErrorVo.label).toEqual('Known Error');
expect(knownErrorVo.rootCause).toEqual('');
expect(knownErrorVo.targetDate).toEqual(null);
});
it(' should test the inheritance ', function () {
expect(knownErrorVo instanceof TicketVO).toBeTruthy();
});
it(' should verify all the properties ', function () {
var returnVal = knownErrorVo.getProps();
expect(returnVal).toEqual([ 'id', 'createDate', 'displayId', 'modifiedDate', 'summary', 'priority', 'desc', 'numAttachments', 'status', 'assignee', 'supportGroup', 'serviceTargets', 'customer', 'contact', 'categorizations', 'customFields', 'dynamicFields', 'following', 'accessMappings', 'company', 'locationCompany', 'ownerGroup', 'type', 'crossLaunchURL', 'coordinator', 'coordinatorGroup', 'causalCI', 'viewAccess', 'rootCause', 'workaround', 'searchable', 'impactedService', 'resolution', 'impact', 'priority', 'urgency', 'targetDate' ]);
});
});