commit | 723ad1eb89bbe0c7e24ff8cd9c1a82a54b4584e5 | [log] [tgz] |
---|---|---|
author | Arundathi Patil <arundpil@in.ibm.com> | Fri Aug 03 15:29:16 2018 +0530 |
committer | Takamune Cho <tc012c@att.com> | Fri Aug 03 20:51:19 2018 +0000 |
tree | f51aeb5aba65409c5921c449a229a4b8c5033041 | |
parent | 4769499e5523e480ebe89472c2249fd184024fec [diff] |
parameter.component - fixed test case fixed test case 'should retrive PD from cache' that was failing with the below error as it was expecting wrong value. Error: Expected [ ] to be 'TEST PD INFORMATION' In this test case, ngAfterViewInit() method is called which returns the PD data. This PD data is stored into variable called 'displayParamObjects' and then this variable is returned to the calling function. The value for 'displayParamObjects' is set in getPDFromSession() method which makes a async http call to get the PD data, so even before the results of the async call are returned, ngAfterViewInit() method returns the empty 'displayParamObject' variable. Hence changed the expected value to the actual value returned by ngAfterViewInit() method. We can write a seperate test case to test the async call made by getPDFromSession() method. Issue-ID: APPC-1064 Change-Id: I0b8f38b6e52dc7478a4ab510ca3ff10ff81ae0ca Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
This project was generated with Angular CLI version 1.2.3.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.