Skip to content

Commit

Permalink
Update release tests to check for $govuk-* Sass variables
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Feb 20, 2024
1 parent 9caa42e commit 20b1555
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/build/release.unit.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ describe('dist/', () => {
expect(stylesheet).not.toMatch(/body:before{content:/)
})

it('should not contain Sass variables', () => {
expect(stylesheet).not.toContain('$govuk-')
})

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. */'
Expand Down

0 comments on commit 20b1555

Please sign in to comment.