23 lines
1.0 KiB
JavaScript
23 lines
1.0 KiB
JavaScript
describe('Testing DWP Request VO', function () {
|
|
|
|
var sbeRequestObj;
|
|
|
|
it(' should create object and test properties ', function () {
|
|
var mock = {
|
|
id: '1',
|
|
orderId: '1',
|
|
desc: 'Testing SBE Request',
|
|
status: {
|
|
value: 'closed'
|
|
},
|
|
quantity: '1',
|
|
paymentType: 'FREE'
|
|
};
|
|
sbeRequestObj = new SbeRequestVO();
|
|
expect(sbeRequestObj.ticketType).toBe('sberequest');
|
|
expect(sbeRequestObj.getProps()).toEqual(['id', 'createDate', 'type', 'serviceName', 'orderId', 'serviceId', 'description', 'excerpt', 'status', 'quantity', 'paymentType', 'freeLabelText', 'currency', 'completedDate', 'onceCost', 'monthlyCost',
|
|
'yearlyCost', 'ticketType', 'requestedBy', 'requestedFor', 'canRequestAgain', 'orderTitle', 'modifiedDate', 'customFields', 'answers', 'isInApproval']);
|
|
sbeRequestObj.postBuild();
|
|
expect(sbeRequestObj.accessMappings.detailsEditAllowed).toBeFalsy();
|
|
});
|
|
}); |