added jasmine in the back

This commit is contained in:
kharhamel 2020-04-06 15:48:19 +02:00
parent f7434ba64a
commit ded19549c7
7 changed files with 69 additions and 8 deletions

View file

@ -5,7 +5,7 @@ export class Message {
constructor(message: string) {
let data = JSON.parse(message);
if(!data.userId || !data.roomId){
throw Error("userId and roomId cannot be null");
throw Error("userId or roomId cannot be null");
}
this.userId = data.userId;
this.roomId = data.roomId;