[mirotalksfu] - rename unit tests

هذا الالتزام موجود في:
Miroslav Pejic
2024-08-16 16:55:05 +02:00
الأصل 887885e7bd
التزام ec95711104
3 ملفات معدلة مع 6 إضافات و6 حذوفات

عرض الملف

@@ -1,6 +1,6 @@
'use strict';
// npx mocha checkServerApi.js
// npx mocha test-ServerApi.js
require('should');
@@ -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';

عرض الملف

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

عرض الملف

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