Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
refactor(specs): rename __tests__ folder (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikita Almanov <131481562+nikkeyl@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and nikkeyl committed Jan 26, 2024
1 parent 054c654 commit 9e620d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"recursive": true,
"reporter": "mocha-spec-reporter-with-file-names",
"slow": 1500,
"spec": ["__tests__"],
"spec": ["specs"],
"timeout": 20000
}
2 changes: 1 addition & 1 deletion __tests__/trimString.spec.js → specs/trim-string.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from 'chai';
import { describe, it } from 'mocha';

import trimString from '../src/helpers/trimString.js';
import trimString from '../src/helpers/trim-string.js';

describe('trimString', () => {
it('should remove vowels from a string', () => {
Expand Down
8 changes: 6 additions & 2 deletions __tests__/typeChecker.spec.js → specs/type-checker.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from 'chai';
import { describe, it } from 'mocha';

import typeChecker from '../src/helpers/typeChecker.js';
import typeChecker from '../src/helpers/type-checker.js';

describe('typeChecker', () => {
it('should not throw an error for a valid array argument', () => {
Expand Down Expand Up @@ -102,7 +102,11 @@ describe('typeChecker', () => {

it('should not throw an error for a valid bigint argument', () => {
assert.doesNotThrow(() => {
typeChecker(1234567890123456789012345678901234567890n, 'hash', 'bigint');
typeChecker(
1_234_567_890_123_456_789_012_345_678_901_234_567_890n,
'hash',
'bigint',
);
});
});

Expand Down

0 comments on commit 9e620d8

Please sign in to comment.