Skip to content

Commit

Permalink
Add test for copyright notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanita Barrett committed Aug 26, 2020
1 parent fd216ba commit d0392d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/gulp/__tests__/after-build-dist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ describe('dist/', () => {
it('should not contain current media query displayed on body element', () => {
expect(stylesheet).not.toMatch(/body:before{content:/)
})

it('should contain the copyright notice', () => {
expect(stylesheet).toContain('/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */')
})
})

describe(`govuk-frontend-ie8-${version}.min.css`, () => {
Expand Down

0 comments on commit d0392d8

Please sign in to comment.