use randomString/Number from lib in api tests (#2542)

This commit is contained in:
Meisam
2023-01-04 14:09:51 -08:00
committed by GitHub
parent 2607d90094
commit dad5b28cc5
6 changed files with 28 additions and 22 deletions
+2 -1
View File
@@ -5,9 +5,10 @@ request = request('http://127.0.0.1:8080');
const registerChat = require('./lib/chat').registerChat;
const sendChatMessage = require('./lib/chat').sendChatMessage;
const getAdminResponse = require('./lib/admin').getAdminResponse;
const randomNumber = require('./lib/rand').randomNumber;
var userDisplayName;
const message = Math.floor(Math.random() * 100) + ' test 123';
const message = randomNumber(100) + ' test 123';
const testMessage = {
body: message,