Skip to content

Commit

Permalink
fixing some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Aug 25, 2023
1 parent 8b33c6d commit b351919
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ describe('DashboardWidgetComponent', () => {
"from": "Immunization",
"where": {},

"aggregation_params":["resourceType"],
"aggregation_type":"countBy"
"aggregations":{
"count_by": "source_resource_type"
},
}
},
{
Expand All @@ -136,8 +137,9 @@ describe('DashboardWidgetComponent', () => {
"from": "Claim",
"where": {},

"aggregation_params":["resourceType"],
"aggregation_type":"countBy"
"aggregations":{
"count_by": "source_resource_type"
},
}
}],
"parsing": {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/lib/models/datatypes/human-name-model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit b351919

Please sign in to comment.