Server info proper values (#3933)

* Adds failing test

* Makes sure booleans are proper booleans

* nits

* Double negate so it also takes care of null
This commit is contained in:
Florent Vilmart
2017-06-15 15:09:33 -04:00
committed by GitHub
parent 92fa6f2b8a
commit 9d79ba1ccb
2 changed files with 98 additions and 3 deletions

View File

@@ -181,9 +181,8 @@ class ParseServer {
// We pass the options and the base class for the adatper,
// Note that passing an instance would work too
const pushController = new PushController();
const hasPushSupport = pushAdapter && push;
const hasPushScheduledSupport = pushAdapter && push && scheduledPush;
const hasPushSupport = !!(pushAdapter && push);
const hasPushScheduledSupport = hasPushSupport && (scheduledPush === true);
const {
disablePushWorker