added jasmine in the back
This commit is contained in:
parent
f7434ba64a
commit
ded19549c7
7 changed files with 69 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue