Produced by Araxis Merge on 10/4/2017 8:04:36 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\orders\common | orders-common-find-draft-itest-spec.js | Mon Aug 21 12:51:00 2017 UTC |
| 2 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-find-draft-itest-spec.js | Tue Oct 3 19:00:32 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 4 | 66 |
| Changed | 3 | 6 |
| 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 findDr aft = requ ire('./ord ers-common -find-draf t'); | |
| 4 | ||
| 5 | ||
| 6 | var writeb ackContext Find = { | |
| 7 | loadRe ference: f alse, | |
| 8 | model: { | |
| 9 | patientUid : ' R E D A CTED ;100716', | |
| 10 | au thorUid: ' Something' , | |
| 11 | }, | |
| 12 | logger : sinon.st ub(require ('bunyan') .createLog ger({ | |
| 13 | na me: 'order s-find-dra ft' | |
| 14 | })), | |
| 15 | appCon fig: { | |
| 16 | ge neralPurpo seJdsServe r: { | |
| 17 | baseUrl: ' http:// IP /resource/ write-heal th-data/pa tient/:pid /orders/fi nd-draft' | |
| 18 | } | |
| 19 | } | |
| 20 | ||
| 21 | }; | |
| 22 | ||
| 23 | describe(' Finding a draft orde r', functi on() { | |
| 24 | ||
| 25 | it('te sts the fi nd a draft functiona lity', fun ction(done ) { | |
| 26 | th is.timeout (5000); | |
| 27 | fi ndDraft(wr itebackCon textFind, function(e rr, respon se) { | |
| 28 | expect(e rr).must.b e.null(); | |
| 29 | expect(res ponse.mode l.patientU id).to.equ al(' R E D A CTED ;100716'); | |
| 30 | expect(r esponse.mo del.author Uid).to.eq ual('Somet hing'); | |
| 31 | expect(r esponse.mo del.domain ).to.equal ('order'); | |
| 32 | expect(r esponse.mo del.ehmpSt ate).to.eq ual('draft '); | |
| 33 | done(); | |
| 34 | }) ; | |
| 35 | }); | |
| 36 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.