313. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/2/2019 1:08:02 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

313.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ARS_Frontend\ars-app\src\app\shared\header header.component.spec.ts Wed Mar 27 19:18:31 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\ARS_Frontend\ars-app\src\app\shared\header header.component.spec.ts Fri Mar 29 18:23:42 2019 UTC

313.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 134
Changed 1 2
Inserted 0 0
Removed 0 0

313.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

313.4 Active regular expressions

No regular expressions were active.

313.5 Comparison detail

  1   import { O bservable  } from 'rx js/Observa ble';
  2   import { O bserver }  from 'rxjs /Observer' ;
  3  
  4   import { F ormBuilder  } from '@ angular/fo rms';
  5   import { A uthenticat ionService  } from '. ./../auth/ auth.servi ce';
  6   import { H eaderCompo nent } fro m './heade r.componen t';
  7   import { E wvViewerSe rvice } fr om '../../ ewv/ewv-vi ewer/ewv-v iewer.serv ice';
  8  
  9   describe(' HeaderComp onent', ()  => {
  10     let comp onent: Hea derCompone nt;
  11     let rout er;
  12     let loca tion;
  13     let auth entication Service: A uthenticat ionService ;
  14     let ewvV iewerServi ce: EwvVie werService ;
  15  
  16     beforeEa ch(() => {
  17       router  = { navig ate: () =>  true };
  18       locati on = { rep laceState:  () => tru e };
  19       authen ticationSe rvice = ne w Authenti cationServ ice(null,  null, null , null);
  20       ewvVie werService  = new Ewv ViewerServ ice(null,  null);
  21  
  22       compon ent = new  HeaderComp onent(auth entication Service, e wvViewerSe rvice);
  23     });
  24  
  25     it('shou ld be crea ted', () = > {
  26       expect (component ).toBeTrut hy(); // E xpects com ponent to  be created
  27     });
  28  
  29     it('test  ngOnInit  method: "a uthenticat ionService .getDecode dUserInfo"  returns b ack object  that has  "userName"  property  with non-w hite space  string',  () => {
  30       expect (component .userName) .toEqual(' ');
  31  
  32         let return edData = {  userName:  '
A I ' };
  33       spyOn( authentica tionServic e, 'getDec odedUserIn fo').and.c allFake(
  34         () = > returned Data
  35       );
  36  
  37       compon ent.ngOnIn it();
  38  
  39       expect (component .userName) .toEqual(' USER_NAME' );
  40     });
  41  
  42     it('test  ngOnInit  method: "a uthenticat ionService .getDecode dUserInfo"  returns b ack object  that has  no "userNa me" proper ty', () =>  {
  43       expect (component .userName) .toEqual(' ');
  44  
  45       let re turnedData  = {};
  46       spyOn( authentica tionServic e, 'getDec odedUserIn fo').and.c allFake(
  47         () = > returned Data
  48       );
  49  
  50       compon ent.ngOnIn it();
  51  
  52       expect (component .userName) .toEqual(u ndefined);
  53     });
  54  
  55     // it('t est logout  method',  () => {
  56     //   spy On(session Storage, ' clear');
  57     //   spy On(locatio n, 'replac eState');
  58     //   spy On(router,  'navigate ');
  59  
  60     //   com ponent.log out();
  61  
  62     //   exp ect(sessio nStorage.c lear).toHa veBeenCall ed();
  63     //   exp ect(locati on.replace State).toH aveBeenCal led();
  64     //   exp ect(locati on.replace State).toH aveBeenCal ledWith('/ ');
  65     //   exp ect(router .navigate) .toHaveBee nCalled();
  66     //   exp ect(router .navigate) .toHaveBee nCalledWit h(['/login ']);
  67     // });
  68   });