Skip to content

Commit

Permalink
[mirotalksfu] - rename unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Aug 16, 2024
1 parent 887885e commit ec95711
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/checkServerAPI.js → tests/test-ServerAPI.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

// npx mocha checkServerApi.js
// npx mocha test-ServerApi.js

require('should');

Expand All @@ -11,7 +11,7 @@ const CryptoJS = require('crypto-js');
const ServerApi = require('../app/src/ServerApi');
const config = require('../app/src/config');

describe('checkServerAPI', () => {
describe('test-ServerAPI', () => {
let serverApi;
const host = 'example.com';
const authorization = 'secret-key';
Expand Down
4 changes: 2 additions & 2 deletions tests/checkValidator.js → tests/test-Validator.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';

// npx mocha checkValidator.js
// npx mocha test-Validator.js

require('should');

const checkValidator = require('../app/src/Validator');

describe('checkValidator', () => {
describe('test-Validator', () => {
describe('1. Handling invalid room name', () => {
it('should return false for non-string inputs', () => {
checkValidator.isValidRoomName(123).should.be.false();
Expand Down
4 changes: 2 additions & 2 deletions tests/checkXSS.js → tests/test-XSS.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';

// npx mocha checkXSS.js
// npx mocha test-XSS.js

require('should');

const checkXSS = require('../app/src/XSS');

describe('checkXSS', () => {
describe('test-XSS', () => {
describe('1. Basic Data Types Handling', () => {
it('should return numbers and booleans unchanged', () => {
checkXSS(42).should.equal(42);
Expand Down

0 comments on commit ec95711

Please sign in to comment.