Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
service.getConfig().subscribe((configResponse: ConfigParams) => {
const mock: ConfigParams = {
colors: configParams.config.colors,
emailRegex: configParams.config['emailRegex'],
license: configParams.config.license,
menu: undefined,
paginatorLinks: configParams.config['dotcms.paginator.links'],
paginatorRows: configParams.config['dotcms.paginator.rows'],
websocket: {
websocketReconnectTime:
configParams.config.websocket['dotcms.websocket.reconnect.time'],
disabledWebsockets: configParams.config.websocket['dotcms.websocket.disable']
}
};
expect(configResponse).toEqual(mock);
done();
});
});