Browse Source

Prettified Code!

pull/2934/head
gabek 2 years ago committed by GitHub Action
parent
commit
69225bc91b
  1. 2
      web/jest.config.js
  2. 1
      web/tests/streamkeys.test.ts

2
web/jest.config.js

@ -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'],

1
web/tests/streamkeys.test.ts

@ -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);

Loading…
Cancel
Save