Skip to content

Commit

Permalink
Removed duplicate comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey authored Jun 7, 2021
1 parent bc88bb7 commit 7ba9f2c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/govuk/template.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,12 @@ describe('Template', () => {
const $ = renderTemplate()
const scriptTag = $('body > script').first()

// A change to the inline script would be a breaking change, and it would also require
// updating the hash published in https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#if-your-javascript-isn-t-working-properly
expect(scriptTag.attr('nonce')).toEqual(undefined)
})
it('should have a nonce attribute when nonce is provided', () => {
const $ = renderTemplate({ scriptNonce: 'abcdef' })
const scriptTag = $('body > script').first()

// A change to the inline script would be a breaking change, and it would also require
// updating the hash published in https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#if-your-javascript-isn-t-working-properly
expect(scriptTag.attr('nonce')).toEqual('abcdef')
})
})
Expand Down

0 comments on commit 7ba9f2c

Please sign in to comment.