Add collaboration feature
[sdc.git] / openecomp-ui / test-utils / factories / softwareProduct / SoftwareProductComponentsMonitoringFactories.js
index 550e1a6..8cb2221 100644 (file)
@@ -26,13 +26,10 @@ export const VSPComponentsMonitoringRestFactory = new Factory()
        .option('createPoll', false)
        .option('createVes', false)
 
-       .attr(trap, ['createTrap'], (createTrap) => {return (createTrap) ? randomstring.generate() : undefined})
-       .attr(poll, ['createPoll'], (createPoll) => {return (createPoll) ? randomstring.generate() : undefined})
-       .attr(ves, ['createVes'], (createVes) => {return (createVes) ? randomstring.generate() : undefined});
+       .attr(trap, ['createTrap'], (createTrap) => createTrap ? randomstring.generate() : undefined)
+       .attr(poll, ['createPoll'], (createPoll) => createPoll ? randomstring.generate() : undefined)
+       .attr(ves, ['createVes'], (createVes) => createVes ? randomstring.generate() : undefined);
 
 
 export const VSPComponentsMonitoringViewFactory = new Factory()
        .extend(VSPComponentsMonitoringRestFactory);
-//     .after(monitoring => {
-
-//     });