All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lib.xp.examples.portal.componentUrl.js Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
var portalLib = require('/lib/xp/portal');
var assert = require('/lib/xp/testing');

// BEGIN
var url = portalLib.componentUrl({
    component: 'main/0'
});

assert.assertEquals('ComponentUrlParams{type=server, params={}, component=main/0}', url);
// END

//check null params
url = portalLib.componentUrl();

assert.assertEquals('ComponentUrlParams{type=server, params={}}', url);

//check empty params
url = portalLib.componentUrl({});

assert.assertEquals('ComponentUrlParams{type=server, params={}}', url);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy