Skip to content

Commit

Permalink
Test for display attribute on header fallback png
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees committed Jan 8, 2021
1 parent dddb890 commit b3e92a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/govuk/components/header/template.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ describe('header', () => {
// Cheerio converts xhref to href - https://github.com/cheeriojs/cheerio/issues/1101
expect($fallbackImage.attr('href')).toEqual('data:,')
})

it('hides the image when SVG is supported by using the SVG display attribute', () => {
expect($fallbackImage.attr('display')).toEqual('none')
})
})
})
})

0 comments on commit b3e92a4

Please sign in to comment.