Skip to content

Commit

Permalink
fix(test): Change email to mailto:
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Jul 13, 2023
1 parent 598f6b2 commit 4a327bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a
[href]="shownContact.website"
target="_blank"
class="text-primary text-sm cursor-pointer hover:underline transition-all"
class="contact-website text-primary text-sm cursor-pointer hover:underline transition-all"
>{{ shownContact.website }}
<mat-icon class="!w-[12px] !h-[12px] !text-[12px] opacity-75"
>open_in_new</mat-icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ describe('MetadataContactComponent', () => {
})
})
describe('content', () => {
let ps
let email
beforeEach(() => {
ps = fixture.debugElement.queryAll(By.css('p'))
email = fixture.debugElement.query(By.css('a'))
})
it('displays the contact name', () => {
const el = fixture.debugElement.query(
Expand All @@ -69,10 +69,10 @@ describe('MetadataContactComponent', () => {
expect(el.innerHTML).toBe(' Worldcorp ')
})
it('displays the contact email', () => {
expect(ps[1].nativeElement.innerHTML).toBe('[email protected]')
expect(email.attributes.href).toBe('mailto:[email protected]')
})
it('displays a link to the contact website', () => {
const a = fixture.debugElement.query(By.css('a'))
const a = fixture.debugElement.query(By.css('.contact-website'))
expect(a.attributes.href).toBe('https://john.world.co')
expect(a.attributes.target).toBe('_blank')
})
Expand Down

0 comments on commit 4a327bf

Please sign in to comment.