From efa64a1346550878c6924241d010828f75d8bf20 Mon Sep 17 00:00:00 2001 From: Michel Felipe de Oliveira Ferreira - SUPDE/DESDR/DE502 <03385437598@serpro-1552831.(none)> Date: Wed, 30 Mar 2016 10:13:09 -0300 Subject: [PATCH] Fix helpers.ts type problems and added conditional to show profile custom-fields table --- src/app/profile/data/profile-data.component.spec.ts | 3 +-- src/app/profile/data/profile-data.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/profile/data/profile-data.component.spec.ts b/src/app/profile/data/profile-data.component.spec.ts index bebaf77..9abb416 100644 --- a/src/app/profile/data/profile-data.component.spec.ts +++ b/src/app/profile/data/profile-data.component.spec.ts @@ -52,11 +52,10 @@ describe('Profile data component', () => { profileMock.additional_data = { 'Address': 'Street A, Number 102' }; + buildComponent().then((fixture: ComponentFixture) => { let profileData: ProfileDataComponent = fixture.debugElement.componentViewChildren[0].componentInstance; profileData.profile = profileMock; - - expect(profileData.hasCustomFields()).toBeTruthy(); expect(fixture.debugElement.query('div.profile-custom-fields').length).toEqual(1); }); }); diff --git a/src/app/profile/data/profile-data.html b/src/app/profile/data/profile-data.html index d648d85..adbfd06 100644 --- a/src/app/profile/data/profile-data.html +++ b/src/app/profile/data/profile-data.html @@ -22,7 +22,7 @@ -
+

{{"profile.others_info" | translate}}

-- libgit2 0.21.2