fixing some tests.
This commit is contained in:
parent
8b33c6d34a
commit
b351919096
|
@ -240,9 +240,11 @@ export class MedicalSourcesConnectedComponent implements OnInit {
|
|||
* @param tokenResponse
|
||||
* @param env
|
||||
*/
|
||||
private getAccessTokenExpiration(tokenResponse: any): number
|
||||
public getAccessTokenExpiration(tokenResponse: any): number
|
||||
{
|
||||
const now = Math.floor(Date.now() / 1000);
|
||||
let expires_at = 0;
|
||||
|
||||
|
||||
// Option 1 - using the expires_in property of the token response
|
||||
if (tokenResponse.expires_in) {
|
||||
|
|
|
@ -123,8 +123,9 @@ describe('DashboardWidgetComponent', () => {
|
|||
"from": "Immunization",
|
||||
"where": {},
|
||||
|
||||
"aggregation_params":["resourceType"],
|
||||
"aggregation_type":"countBy"
|
||||
"aggregations":{
|
||||
"count_by": "source_resource_type"
|
||||
},
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -136,8 +137,9 @@ describe('DashboardWidgetComponent', () => {
|
|||
"from": "Claim",
|
||||
"where": {},
|
||||
|
||||
"aggregation_params":["resourceType"],
|
||||
"aggregation_type":"countBy"
|
||||
"aggregations":{
|
||||
"count_by": "source_resource_type"
|
||||
},
|
||||
}
|
||||
}],
|
||||
"parsing": {
|
||||
|
|
|
@ -13,8 +13,9 @@ describe('HumanNameModel', () => {
|
|||
expectedHumanName.familyName = 'Windsor'
|
||||
expectedHumanName.suffix = ''
|
||||
expectedHumanName.use = 'maiden'
|
||||
expectedHumanName.header = 'Peter, James Windsor'
|
||||
// expectedHumanName.header = 'Peter, James Windsor'
|
||||
|
||||
expect(new HumanNameModel(fixture)).toEqual(expectedHumanName);
|
||||
expect('Peter, James Windsor').toEqual(expectedHumanName.displayName);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue