Skip to content

Commit

Permalink
fix: refer to allowlist as allowlist (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Sep 23, 2024
1 parent 4c9ad8f commit 2c5b009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/markdown-helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ describe('markdown-helpers', () => {
]);
});

it('should throw an error if there is a tag not on the whitelist', () => {
it('should throw an error if there is a tag not on the allowlist', () => {
expect(() => parseHeadingTags(' _Awesome_')).toThrowErrorMatchingInlineSnapshot(
`"heading tags must be from the whitelist: ["macOS","mas","Windows","Linux","Experimental","Deprecated","Readonly"]: expected [ 'macOS', 'mas', 'Windows', …(4) ] to include 'Awesome'"`,
`"heading tags must be from the allowlist: ["macOS","mas","Windows","Linux","Experimental","Deprecated","Readonly"]: expected [ 'macOS', 'mas', 'Windows', …(4) ] to include 'Awesome'"`,
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/markdown-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const parseHeadingTags = (tags: string | null): DocumentationTag[] => {
while ((match = matcher.exec(tags))) {
expect(ALLOWED_TAGS).to.contain(
match[1],
`heading tags must be from the whitelist: ${JSON.stringify(ALLOWED_TAGS)}`,
`heading tags must be from the allowlist: ${JSON.stringify(ALLOWED_TAGS)}`,
);
parsedTags.push(match[1] as keyof typeof tagMap);
}
Expand Down

0 comments on commit 2c5b009

Please sign in to comment.