All files / ima/config services.js

100% Statements 16/16
100% Branches 2/2
100% Functions 1/1
100% Lines 16/16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36  2x   2x   2x   2x   2x 1x   1x   1x     2x       2x   2x   2x   2x   2x   2x   2x    
export default (ns, oc, config) => {
  oc.get('$Dictionary').init(config.dictionary);
 
  oc.get('$Dispatcher').clear();
 
  oc.get('$Request').init(config.request);
 
  oc.get('$Response').init(config.response, oc.get('$CookieTransformFunction'));
 
  if (!oc.get('$Window').isClient()) {
    oc.get('$CookieStorage').clear();
 
    oc.get('$SessionStorage').clear();
 
    oc.get('$CacheStorage').clear();
  }
 
  oc
    .get('$CookieStorage')
    .init({ secure: oc.get('$Secure') }, oc.get('$CookieTransformFunction'));
 
  oc.get('$SessionStorage').init();
 
  oc.get('$CacheStorage').init();
 
  oc.get('$Router').init(config.router);
 
  oc.get('$PageManager').init();
 
  oc.get('$PageStateManager').clear();
 
  oc.get('$HttpUrlTransformer').clear();
 
  oc.get('$DevTool').init();
};