0

Prettified Code!

This commit is contained in:
gabek 2023-04-17 22:34:29 +00:00 committed by GitHub Action
parent 1a63880d01
commit 69225bc91b
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,5 @@
module.exports = { module.exports = {
transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }], }, transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }] },
testEnvironment: 'node', testEnvironment: 'node',
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$', testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],

View File

@ -11,7 +11,6 @@ describe('generateRndKey', () => {
expect(typeof result).toBe('string'); expect(typeof result).toBe('string');
}); });
test('should generate a key of length between 8 and 192 characters', () => { test('should generate a key of length between 8 and 192 characters', () => {
const key = generateRndKey(); const key = generateRndKey();
expect(key.length).toBeGreaterThanOrEqual(8); expect(key.length).toBeGreaterThanOrEqual(8);