39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
/**
|
|
* Created by mkumar1 on 11-05-2017.
|
|
*/
|
|
|
|
describe('Testing DLP VO', function () {
|
|
|
|
var dlpVo;
|
|
|
|
it(' should create object and test properties ', function () {
|
|
|
|
dlpVo = new DLPVO();
|
|
|
|
expect(dlpVo.summary).toEqual('');
|
|
expect(dlpVo.company).toEqual('');
|
|
expect(dlpVo.triggeredBy).toEqual('');
|
|
expect(dlpVo.parentName).toEqual('incident');
|
|
expect(dlpVo.parentDisplayId).toEqual('');
|
|
expect(dlpVo.parentSummary).toEqual('');
|
|
expect(dlpVo.eventSourceInfo).toEqual('');
|
|
expect(dlpVo.policies).toEqual('');
|
|
});
|
|
|
|
it(' should test the inheritance ', function () {
|
|
expect(dlpVo instanceof BaseVO).toBeTruthy();
|
|
});
|
|
|
|
it(' should verify all the properties ', function () {
|
|
|
|
var returnVal = dlpVo.getProps();
|
|
expect(returnVal).toEqual([ 'id', 'createDate', 'summary', 'company', 'triggeredBy', 'parentType', 'parentDisplayId', 'parentId', 'parentSummary', 'eventSourceInfo', 'policies', 'type' ]);
|
|
|
|
});
|
|
|
|
it(' should test the post build features ', function () {
|
|
dlpVo.postBuild();
|
|
expect(dlpVo instanceof BaseVO).toBeTruthy();
|
|
});
|
|
|
|
}); |