6. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/12/2019 4:22:12 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.

6.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\CC CC SEOC 1.7\seocui-release1.7@bb33f84589b\cc_seoc_ui\src\actions usersActions.spec.js Tue Jan 29 13:55:38 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\Community Care Care Coordination SEOC 1.7-redacted\CC CC SEOC 1.7\seocui-release1.7@bb33f84589b\cc_seoc_ui\src\actions usersActions.spec.js Tue Mar 12 20:41:56 2019 UTC

6.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 17 196
Changed 16 46
Inserted 0 0
Removed 0 0

6.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

6.4 Active regular expressions

No regular expressions were active.

6.5 Comparison detail

  1   import con figureMock Store from  'redux-mo ck-store';
  2   import thu nk from 'r edux-thunk ';
  3  
  4   import * a s ActionTy pes from ' ../constan ts/actionT ypes';
  5  
  6   import req uest from  '../utils/ request';
  7   jest.mock( '../utils/ request');
  8  
  9   import * a s usersAct ions from  './usersAc tions';
  10  
  11   const midd lewares =  [thunk];
  12   const stor e = config ureMockSto re(middlew ares)({});
  13  
  14   let users  = [{
  15     id: 1,
  16     userName : 'User, V iewer',
  17     role: 'V IEWER',
  18     vaNetwor kId: 'SEOC VIEWERUSER ',
  19     domain:  'DEV'
  20   }];
  21  
  22   describe(' Users Acti ons', () = > {
  23     beforeEa ch(() => {
  24       reques t.mockImpl ementation ((options)  => {
  25         opti ons.succes s(JSON.str ingify(use rs));
  26       });
  27     });
  28  
  29     it('shou ld return  an action  object for  populatin g billingC odes in th e store',  () => {
  30       const  expected =  {
  31         type : ActionTy pes.POPULA TE_USERS,
  32         user s
  33       };
  34  
  35       const  actual = u sersAction s.populate Users(user s);
  36  
  37       expect (actual).t oEqual(exp ected);
  38     });
  39  
  40     it('shou ld fetch t he list of  users fro m the API' , () => {
  41       store. dispatch(u sersAction s.fetchUse rs());
  42  
  43       const  actualActi ons = stor e.getActio ns();
  44       const  requestOpt ions = req uest.mock. calls[0][0 ];
  45  
  46       expect (actualAct ions.lengt h).toEqual (1);
  47       expect (actualAct ions[0]).t oEqual({
  48         type : ActionTy pes.POPULA TE_USERS,
  49         user s
  50       });
  51  
  52       expect (requestOp tions.type ).toEqual( 'GET');
  53       expect (requestOp tions.endp oint).toEq ual('users ');
  54     });
  55  
  56     it('shou ld alphabe tize the l ist of bil lingCodes' , () => {
  57       users  = [
  58         {
  59             userName:  AI       ,
  60           ro le: 'Viewe r',
  61           va NetworkId:  ' REDACTED ',
  62             domain: ' REDACTED '
  63         },
  64         {
  65           us erName: ' REDACTED ',
  66           ro le: 'Autho r',
  67             vaNetworkI d: ' RE D A C TED ',
  68           do main: 'dom ainC'
  69         },
  70         {
  71             userName:  AI       ,
  72           ro le: 'Publi sher',
  73             vaNetworkI d: ' RE D ACTE D',
  74           do main: ' REDACTE D'
  75         },
  76         {
  77             userName:  AI       ,
  78           ro le: 'Admin istrator',
  79             vaNetworkI d: ' RE DA CTED ',
  80             domain: ' RED A CTED '
  81         }
  82       ];
  83  
  84       const  alphabetiz edUsers =  [
  85         {
  86             userName:  AI       ,
  87           ro le: 'ADMIN ISTRATOR',
  88             vaNetworkI d: '
R E DA CTED ',
  89             domain: ' RE D
A CTED '
  90         },
  91         {
  92             userName:  AI       ,
  93           ro le: 'VIEWE R',
  94             vaNetworkI d: ' R E DAC T E D
',
  95             domain: ' RE D
A CTED '
  96         },
  97         {
  98             userName:  ' AI ',
  99           ro le: 'AUTHO R',
  100             vaNetworkI d: '
R E D A C TED ',
  101             domain: ' RE D
A
C TED '
  102         },
  103         {
  104             userName:  AI       ,
  105           ro le: 'PUBLI SHER',
  106             vaNetworkI d: ' R E DAC T E D',
  107             domain: ' RE D
A CTE D'
  108         }
  109       ];
  110  
  111       store. dispatch(u sersAction s.fetchUse rs());
  112  
  113       const  actualActi ons = stor e.getActio ns();
  114  
  115       expect (actualAct ions.lengt h).toEqual (2);
  116       expect (actualAct ions[1]).t oEqual({
  117         type : ActionTy pes.POPULA TE_USERS,
  118         user s: alphabe tizedUsers
  119       });
  120     });
  121   });