Skip to content

Commit

Permalink
refactor: small changes (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl authored Mar 22, 2024
1 parent 0b2162a commit 5828e18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { parse } from 'node:path';
import chalk from 'chalk';

Check failure on line 3 in index.ts

View workflow job for this annotation

GitHub Actions / Lint

Parse errors in imported module 'chalk': parserPath or languageOptions.parser is required! (undefined:undefined)

Check failure on line 3 in index.ts

View workflow job for this annotation

GitHub Actions / Lint

Parse errors in imported module 'chalk': parserPath or languageOptions.parser is required! (undefined:undefined)

Check warning on line 3 in index.ts

View workflow job for this annotation

GitHub Actions / Lint

Parse errors in imported module 'chalk': parserPath or languageOptions.parser is required! (undefined:undefined)

Check warning on line 3 in index.ts

View workflow job for this annotation

GitHub Actions / Lint

Parse errors in imported module 'chalk': parserPath or languageOptions.parser is required! (undefined:undefined)

/**
* The function `validateFontFileName` in TypeScript validates
* The function `validateFontFileName` validates
* if a given font file name matches a specific pattern.
*
* @param {string} file - The `file` parameter in the `validateFontFileName`
Expand Down
6 changes: 3 additions & 3 deletions specs/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Validate Font File Name', () => {
});
});

test('regex: /OpenSans-Semibold\\.woff2/', async () => {
test('argument regex: /OpenSans-Semibold\\.woff2/', async () => {
return validateFontFileName(
'OpenSans-Semibold.woff2',
/OpenSans-Semibold\.woff2/,
Expand All @@ -18,7 +18,7 @@ describe('Validate Font File Name', () => {
});
});

test("regex: new RegExp('OpenSans-Semibold.woff2')", async () => {
test("argument regex: new RegExp('OpenSans-Semibold.woff2')", async () => {
return validateFontFileName(
'OpenSans-Semibold.woff2',
new RegExp('OpenSans-Semibold.woff2'),
Expand All @@ -27,7 +27,7 @@ describe('Validate Font File Name', () => {
});
});

test("regex: 'OpenSans-Semibold.woff2'", async () => {
test("argument regex: 'OpenSans-Semibold.woff2'", async () => {
return validateFontFileName(
'OpenSans-Semibold.woff2',
'OpenSans-Semibold.woff2',
Expand Down

0 comments on commit 5828e18

Please sign in to comment.