Skip to content

Commit

Permalink
Plugin validator should support nunjucks functions
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Nov 17, 2023
1 parent 1fc78df commit e79b56f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixes

- [#2375: Plugin validator should support nunjucks functions](https://github.com/alphagov/govuk-prototype-kit/pull/2375)

## 13.15.0

### New features
Expand Down
1 change: 1 addition & 0 deletions __tests__/fixtures/mockPlugins/valid-plugin/functions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// intentionally empty, file must just exist for testing purposes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
}
],
"nunjucksFilters": "/filters.js",
"nunjucksFunctions": "/functions.js",
"templates": [
{
"name": "Step by step navigation page",
Expand All @@ -42,4 +43,4 @@
"maxVersion": "5.5.0"
}
]
}
}
1 change: 1 addition & 0 deletions lib/plugins/plugin-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const knownKeys = [
'nunjucksPaths',
'nunjucksMacros',
'nunjucksFilters',
'nunjucksFunctions',
'sass',
'scripts',
'stylesheets',
Expand Down

0 comments on commit e79b56f

Please sign in to comment.