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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | rdk.zip\rdk\product\production\rdk\src\write\pick-list\problems | problems-lexicon-lookup-fetch-list-itest-spec.js | Mon Aug 21 12:51:00 2017 UTC |
| 2 | rdk.zip\rdk\product\production\rdk\src\write\pick-list\problems | problems-lexicon-lookup-fetch-list-itest-spec.js | Tue Oct 3 19:19:11 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 170 |
| Changed | 1 | 10 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | 'use stric t'; | |
| 2 | ||
| 3 | var fetch = require( './problem s-lexicon- lookup-fet ch-list'). fetch; | |
| 4 | ||
| 5 | var log = sinon.stub (require(' bunyan').c reateLogge r({ name: 'problems- fetch-list ' })); | |
| 6 | //var log = require( 'bunyan'). createLogg er({ name: 'problems -fetch-lis t' }); //U ncomment t his line ( and commen t above) t o see outp ut in Inte lliJ conso le | |
| 7 | ||
| 8 | var config uration = { | |
| 9 | enviro nment: 'de velopment' , | |
| 10 | contex t: 'OR CPR S GUI CHAR T', | |
| 11 | host: ' IP ', | |
| 12 | port: PORT , | |
| 13 | accessCode : ' REDACT ', | |
| 14 | verifyCode : ' REDACTED ', | |
| 15 | localIP: ' IP ', | |
| 16 | localA ddress: 'l ocalhost' | |
| 17 | }; | |
| 18 | ||
| 19 | describe(' problems r esource in tegration test', fun ction() { | |
| 20 | it('ca n call the RPC with a date', f unction(do ne) { | |
| 21 | th is.timeout (20000); | |
| 22 | ||
| 23 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 24 | expect(e rr).to.be. falsy(); | |
| 25 | expect(r esult).to. be.truthy( ); | |
| 26 | done(); | |
| 27 | }, {searchSt ring: 'RAD IOL', date : '2015070 8165256'}) ; | |
| 28 | }); | |
| 29 | ||
| 30 | it('ca n call the RPC for t oday', fun ction(done ) { | |
| 31 | th is.timeout (20000); | |
| 32 | ||
| 33 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 34 | expect(e rr).to.be. falsy(); | |
| 35 | expect(r esult).to. be.truthy( ); | |
| 36 | done(); | |
| 37 | }, {searchSt ring: 'lat ex', date: 0}); | |
| 38 | }); | |
| 39 | ||
| 40 | it('ca n call the RPC with no date, n o synonym, no limit' , function (done) { | |
| 41 | th is.timeout (20000); | |
| 42 | ||
| 43 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 44 | expect(e rr).to.be. falsy(); | |
| 45 | expect(r esult).to. be.truthy( ); | |
| 46 | done(); | |
| 47 | }, {searchSt ring: 'lat ex'}); | |
| 48 | }); | |
| 49 | ||
| 50 | it('ca n call the RPC with today and synonym, n o limit', function(d one) { | |
| 51 | th is.timeout (20000); | |
| 52 | ||
| 53 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 54 | expect(e rr).to.be. falsy(); | |
| 55 | expect(r esult).to. be.truthy( ); | |
| 56 | done(); | |
| 57 | }, {searchSt ring: 'lat ex', date: 0, synony m: 1}); | |
| 58 | }); | |
| 59 | ||
| 60 | it('ca n call the RPC with today, syn onym and l imit', fun ction(done ) { | |
| 61 | th is.timeout (20000); | |
| 62 | ||
| 63 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 64 | expect(e rr).to.be. falsy(); | |
| 65 | expect(r esult).to. be.truthy( ); | |
| 66 | done(); | |
| 67 | }, {searchSt ring: 'lat ex', date: 0, synony m: 1, limi t: 100}); | |
| 68 | }); | |
| 69 | ||
| 70 | it('ca n call the RPC with no date an d limit', function(d one) { | |
| 71 | th is.timeout (20000); | |
| 72 | ||
| 73 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 74 | expect(e rr).to.be. falsy(); | |
| 75 | expect(r esult).to. be.truthy( ); | |
| 76 | done(); | |
| 77 | }, {searchSt ring: 'lat ex', limit : 100}); | |
| 78 | }); | |
| 79 | ||
| 80 | it('ca n call the RPC with no date an d limit wi th too man y records coming bac k', functi on(done) { | |
| 81 | th is.timeout (20000); | |
| 82 | ||
| 83 | fe tch(log, c onfigurati on, functi on(err, re sult) { | |
| 84 | expect(e rr).to.be. truthy(); | |
| 85 | expect(r esult).to. be.falsy() ; | |
| 86 | done(); | |
| 87 | }, {searchSt ring: 'lat ex', limit : 100}); | |
| 88 | }); | |
| 89 | }); | |
| 90 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.