Fix server crash on invalid LiveQuery socket event (#4533)

* add failing test for missing command message

* don't mock tv4.validate

* fix existing tests

* make request.op required

* Update comment
This commit is contained in:
fridays
2018-02-16 14:40:04 +01:00
committed by Florent Vilmart
parent ae349f3888
commit 8be7491595
2 changed files with 30 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ const general = {
'enum': ['connect', 'subscribe', 'unsubscribe', 'update']
},
},
'required': ['op']
};
const connect = {