Skip to content

Commit

Permalink
apply nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvamsinh28 committed Dec 10, 2024
1 parent 3a9916c commit cc23800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/markdown/check-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ if (require.main === module) {
main();
}

module.exports = { validateBlogs, validateDocs, checkMarkdownFiles, main, isValidURL }
module.exports = { validateBlogs, validateDocs, checkMarkdownFiles, main, isValidURL };
10 changes: 5 additions & 5 deletions tests/markdown/check-markdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ describe('Frontmatter Validator', () => {
const errors = validateBlogs(frontmatter);

expect(errors).toEqual([
"Invalid date format: invalid-date",
"Tags should be an array",
"Cover must be a string",
"Authors should be an array"]);
'Invalid date format: invalid-date',
'Tags should be an array',
'Cover must be a string',
'Authors should be an array']);
});

it('logs error to console when an error occurs in checkMarkdownFiles', async () => {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('Frontmatter Validator', () => {

await main();

expect(mockConsoleError).not.toHaveBeenCalledWith()
expect(mockConsoleError).not.toHaveBeenCalledWith();
});

it('should return true or false for URLs', () => {
Expand Down

0 comments on commit cc23800

Please sign in to comment.