198. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:38 AM 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.

198.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\write\pick-list pick-list-groups-itest-spec.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\write\pick-list pick-list-groups-itest-spec.js Tue Oct 3 19:22:05 2017 UTC

198.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 11 158
Changed 10 32
Inserted 0 0
Removed 0 0

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

198.4 Active regular expressions

No regular expressions were active.

198.5 Comparison detail

  1   /*global s inon, desc ribe, it * /
  2   'use stric t';
  3  
  4   var _ = re quire('lod ash');
  5  
  6   var pickLi stGroups =  require(' ./pick-lis t-groups') ;
  7  
  8   var log =  sinon.stub (require(' bunyan').c reateLogge r({ name:  'pick-list -groups' } ));
  9  
  10   var config uration =  {
  11       enviro nment: 'de velopment' ,
  12       contex t: 'OR CPR S GUI CHAR T',
  13       genera lPurposeJd sServer: {
  14             baseUrl: ' http:// IP                '
  15       },
  16         accessCode : ' REDACT ',
  17         verifyCode : ' REDACTED ',
  18         localIP: ' IP        ',
  19       localA ddress: 'l ocalhost',
  20       vistaS ites: {
  21             ' R E D A CTED ': {
  22                'name':  'PANORAMA' ,
  23                'environ ment': 'de velopment' ,
  24                'divisio n': '500',
  25                  'host': ' IP          ',
  26                  'localIP':  ' IP        ',
  27                'localAd dress': 'l ocalhost',
  28                'port':  9210,
  29                'product ion': fals e,
  30                  'accessCod e': ' PL      ',
  31                  'verifyCod e': ' PL      !!',
  32                'infoBut tonOid': ' 1.3.6.1.4. 1.3768'
  33           },
  34             ' REDA C TED ': {
  35                'name':  'KODAK',
  36                'environ ment': 'de velopment' ,
  37                'divisio n': '507',
  38                  'host': ' IP          ',
  39                  'localIP':  ' IP        ',
  40                'localAd dress': 'l ocalhost',
  41                'port':  9210,
  42                'product ion': fals e,
  43                  'accessCod e': ' PL      ',
  44                  'verifyCod e': ' PL      !!',
  45                'infoBut tonOid': ' 1.3.6.1.4. 1.3768'
  46           }
  47       }
  48   };
  49  
  50   describe(' pick-list  groups man ager', fun ction() {
  51       it('us es the con figurable  name to fi nd the ord erables pi ck-list gr oup', func tion(done)  {
  52           va r pickList GroupsConf ig = _.clo neDeep(pic kListGroup s.config);
  53           va r i = _.in dexOf(_.pl uck(pickLi stGroupsCo nfig, 'nam e'), 'orde rables');
  54  
  55           if  (i < 0) {
  56                done();
  57                return;
  58           }
  59  
  60           pi ckListGrou psConfig[i ].name = ' dummygroup name';
  61           pi ckListGrou ps._setCon fig(pickLi stGroupsCo nfig);
  62  
  63           va r req = {
  64                app: {
  65                    conf ig: config uration
  66                },
  67                logger:  log,
  68                param: f unction(x)  {
  69                    if ( x === 'sea rchString' ) {
  70                         return 'su gar';
  71                    }
  72                    if ( x === 'sub type') {
  73                         return 'la b';
  74                    }
  75                    if ( x === 'typ e') {
  76                         return 'la b-order-or derable-it ems';
  77                    }
  78                    if ( x === 'sit e') {
  79                          return ' R E D A CTED ';
  80                    }
  81                    if ( x === 'lab Type') {
  82                         return 'S. LAB';
  83                    }
  84                    retu rn undefin ed;
  85                },
  86                query: { }
  87           };
  88  
  89             pickListGr oups.getPi ckListGrou p(req, ' R E D A CTED ', 'dummyg roupname',  function( err, resul t) {
  90                expect(e rr).to.be. falsy();
  91                expect(r esult).to. be.truthy( );
  92                done();
  93           }) ;
  94       });
  95   });