Produced by Araxis Merge on 5/14/2018 1:31:40 PM Eastern 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 | MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_WebUI\src\app\core\maincontent | maincontent.service.spec.ts | Wed Mar 28 00:01:58 2018 UTC |
| 2 | MCCF_EDI_TAS_Infrastructure.zip\MCCF_EDI_TAS_WebUI\src\app\core\maincontent | maincontent.service.spec.ts | Thu May 10 23:12:37 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 10 | 200 |
| Changed | 9 | 22 |
| 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 | // import {inject, T estBed} fr om '@angul ar/core/te sting' | |
| 2 | // import {MockBacke nd, MockCo nnection} from '@ang ular/http/ testing' | |
| 3 | // import {BaseReque stOptions, Http, Res ponse, Res ponseOptio ns} from ' @angular/h ttp' | |
| 4 | ||
| 5 | // import {MainConte ntService} from './m aincontent .service' | |
| 6 | // import {MainConte nt} from ' ./maincont ent' | |
| 7 | ||
| 8 | // describ e('MainCon tentServic e', functi on () { | |
| 9 | // let s ubject: Ma inContentS ervice | |
| 10 | // let b ackend: Mo ckBackend | |
| 11 | ||
| 12 | // befor eEach(func tion () { | |
| 13 | ||
| 14 | // Tes tBed.confi gureTestin gModule({ | |
| 15 | // p roviders: [ | |
| 16 | // MainConte ntService, | |
| 17 | // MockBacke nd, | |
| 18 | // BaseReque stOptions, | |
| 19 | // { | |
| 20 | // provide : Http, | |
| 21 | // useFact ory: funct ion (mockB ackend, de faultOptio ns) { | |
| 22 | // retur n new Http (mockBacke nd, defaul tOptions); | |
| 23 | // }, | |
| 24 | // deps: [ MockBacken d, BaseReq uestOption s] | |
| 25 | // } | |
| 26 | // ] | |
| 27 | // }) | |
| 28 | ||
| 29 | // }) | |
| 30 | ||
| 31 | // befor eEach(inje ct([MainCo ntentServi ce, MockBa ckend], fu nction (ma inContentS ervice, mo ckBackend) { | |
| 32 | // sub ject = mai nContentSe rvice | |
| 33 | // bac kend = moc kBackend | |
| 34 | // })) | |
| 35 | ||
| 36 | // it('sh ould get d ata', func tion (done ) { | |
| 37 | ||
| 38 | // bac kend.conne ctions.sub scribe(fun ction (con nection: M ockConnect ion) { | |
| 39 | ||
| 40 | // l et options = new Res ponseOptio ns({ | |
| 41 | // body: { | |
| 42 | // "items" : [ | |
| 43 | // { | |
| 44 | // "co llection": "maincont ent", | |
| 45 | // "id ": "defaul t_maincont ent", | |
| 46 | // "it em": { | |
| 47 | // " product": [ | |
| 48 | // { | |
| 49 | // "name": "home", | |
| 50 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/Home .aspx" | |
| 51 | // }, | |
| 52 | // { | |
| 53 | // "name": "eBilling ", | |
| 54 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/More Proj.aspx? qproj=eBil ling" | |
| 55 | // }, | |
| 56 | // { | |
| 57 | // "name": "eInsuran ce", | |
| 58 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/More Proj.aspx? qproj=eIns urance" | |
| 59 | // }, | |
| 60 | // { | |
| 61 | // "name": "ePharmac y", | |
| 62 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/More Proj.aspx? qproj=ePha rmacy" | |
| 63 | // }, | |
| 64 | // { | |
| 65 | // "name": "ePayment s", | |
| 66 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/More Proj.aspx? qproj=ePay ments" | |
| 67 | // }, | |
| 68 | // { | |
| 69 | // "name": "NPI", | |
| 70 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/More Proj.aspx? qproj=NPI" | |
| 71 | // }, | |
| 72 | // { | |
| 73 | // "name": "Non-MCCF ", | |
| 74 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/More Proj.aspx? qproj=Tric areChampva " | |
| 75 | // }, | |
| 76 | // { | |
| 77 | // "name": "eAdmin", | |
| 78 | // "erevenueU rl": "http s:// DNS . URL /sites/eBu sinessSolu tions/Site Pages/Home .aspx" | |
| 79 | // } | |
| 80 | // ] , | |
| 81 | // "phone": " PII ", | |
| 82 | // "emailText ": " PII ", | |
| 83 | // "emailValu e": " PII ", | |
| 84 | // " helpConten t": "help line 1<br> help line 2<br> <p>d ial <b>9-1 -1</b> for an emerge ncy</p><br ><I>Thank you!</I>" | |
| 85 | // } | |
| 86 | // } | |
| 87 | // ], | |
| 88 | // "total" : 1 | |
| 89 | // } | |
| 90 | // } ) | |
| 91 | // c onnection. mockRespon d(new Resp onse(optio ns)) | |
| 92 | // }) | |
| 93 | ||
| 94 | // sub ject.getCo ntent(fals e, "").sub scribe(fun ction (res ponse) { | |
| 95 | // expect(re sponse).to Equal(jasm ine.any(Ma inContent) ) | |
| 96 | // expect(re sponse.pro duct.lengt h).toEqual (8) | |
| 97 | // expect(re sponse.pro duct[0].na me).toEqua l('home') | |
| 98 | // } , | |
| 99 | // f unction (e ) { | |
| 100 | // fail(e); | |
| 101 | // } | |
| 102 | // ); | |
| 103 | ||
| 104 | // don e() | |
| 105 | // }) | |
| 106 | ||
| 107 | // after Each(funct ion () { | |
| 108 | // Tes tBed.reset TestingMod ule() | |
| 109 | // }) | |
| 110 | ||
| 111 | // }) |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.