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

lib.xp.examples.schema.getStyles.js Maven / Gradle / Ivy

var schemaLib = require('/lib/xp/schema');
var assert = require('/lib/xp/testing');

/* global log*/

// BEGIN
// Fetch virtual styles.
var result = schemaLib.getStyles({
    application: 'myapp'
});

log.info('Fetched styles: myapp');

// END


assert.assertJsonEquals({
    application: 'myapp',
    cssPath: 'assets/styles.css',
    modifiedTime: '2021-02-25T10:44:33.170079900Z',
    resource: '',
    elements: [
        {
            element: 'style',
            displayName: 'Style display name',
            name: 'mystyle'
        }
    ]
}, result);





© 2015 - 2024 Weber Informatics LLC | Privacy Policy