Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Dec 10, 2018
1 parent 24354d2 commit f1fc585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/components/expression-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ for (const name in CompoundExpression.definitions) {
}

delete types['error'];
delete types['accumulated']; // skip documenting `accumulated` since it is internal use only

export const expressions = {};
export const expressionGroups = {};
Expand Down
2 changes: 1 addition & 1 deletion test/unit/style-spec/expression.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {expressions as definitionMetadata} from '../../../docs/components/expres
// filter out interal "error" and "filter-*" expressions from definition list
const filterExpressionRegex = /filter-/;
const definitionList = Object.keys(definitions).filter((expression) => {
return expression !== 'error' && !filterExpressionRegex.exec(expression);
return expression !== 'error' && expression !== 'accumulated' && !filterExpressionRegex.exec(expression);
}).sort();

test('v8.json includes all definitions from style-spec', (t) => {
Expand Down

0 comments on commit f1fc585

Please sign in to comment.