SmartIT_Extensions/BMC/smart-it-full/test/app/admin/screen-configuration/vo/application-configuration-v...

41 lines
1.1 KiB
JavaScript

/**
* Created by abhatkha on 5/8/17.
*/
//This is test suite for baseVO
describe("Test ApplicationConfigurationVO", function() {
var appConfObj
it(" should create object ", function() {
appConfObj = new ApplicationConfigurationVO();
expect(appConfObj instanceof BaseVO).toEqual(true);
expect(appConfObj instanceof ApplicationConfigurationVO).toEqual(true);
});
it(" should initilize objects with all properties ", function() {
var appConfProp= appConfObj.getProps();
expect(appConfProp).toEqual([ 'id', 'name', 'version', 'tenantId', 'screens']);
expect(appConfObj.id).toBeDefined();
expect(appConfObj.createDate).not.toBeDefined();
expect(appConfObj.id).toEqual('');
expect(appConfObj.name).toEqual('');
expect(appConfObj.version).toEqual('');
expect(appConfObj.tenantId).toEqual('');
expect(appConfObj.screens).toEqual([]);
});
it(" should run postBuild method ", function() {
appConfObj.screens.push({id:'test1', name: 'tset1234'}, {id:'test2', name: 'test1234'});
appConfObj.postBuild();
});
});