File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Unreleased
44
5+ ### Fixes
6+
7+ - [ #2253 : Add comments to the prototype-starter filters file] ( https://github.com/alphagov/govuk-prototype-kit/pull/2253 )
8+
59## 13.10.0
610
711### New features
Original file line number Diff line number Diff line change @@ -99,9 +99,17 @@ describe('migrate test prototype', () => {
9999 it ( 'filters.js should be overwritten' , ( ) => {
100100 const filtersFileContents = getNormalisedFileContent ( path . join ( appDirectory , 'filters.js' ) )
101101
102- expect ( filtersFileContents ) . toEqual (
103- 'const govukPrototypeKit = require(\'govuk-prototype-kit\')\n' +
104- 'const addFilter = govukPrototypeKit.views.addFilter' + '\n'
102+ expect ( filtersFileContents ) . toEqual ( `//
103+ // For guidance on how to create filters see:
104+ // https://prototype-kit.service.gov.uk/docs/filters
105+ //
106+
107+ const govukPrototypeKit = require('govuk-prototype-kit')
108+ const addFilter = govukPrototypeKit.views.addFilter
109+
110+ // Add your filters here
111+
112+ `
105113 )
106114 } )
107115
Original file line number Diff line number Diff line change 1+ //
2+ // For guidance on how to create filters see:
3+ // https://prototype-kit.service.gov.uk/docs/filters
4+ //
5+
16const govukPrototypeKit = require ( 'govuk-prototype-kit' )
27const addFilter = govukPrototypeKit . views . addFilter
8+
9+ // Add your filters here
10+
You can’t perform that action at this time.
0 commit comments