From d0392d86ef2e2052e6c97ce302f14b26c77f2ea3 Mon Sep 17 00:00:00 2001 From: Vanita Barrett Date: Tue, 25 Aug 2020 14:28:29 +0100 Subject: [PATCH] Add test for copyright notice --- tasks/gulp/__tests__/after-build-dist.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/gulp/__tests__/after-build-dist.test.js b/tasks/gulp/__tests__/after-build-dist.test.js index 661a62814d..09ae904cee 100644 --- a/tasks/gulp/__tests__/after-build-dist.test.js +++ b/tasks/gulp/__tests__/after-build-dist.test.js @@ -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`, () => {