[mirotalksfu] - rename unit tests
هذا الالتزام موجود في:
@@ -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);
|
||||
المرجع في مشكلة جديدة
حظر مستخدم