From e942d7de19d6a9319679a6634b396f5ccf180c06 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Fri, 14 Aug 2020 13:21:57 +0800 Subject: [PATCH] fix: tests --- packages/firestore/lib/utils/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/firestore/lib/utils/index.js b/packages/firestore/lib/utils/index.js index ee1f660c..7c7a071b 100644 --- a/packages/firestore/lib/utils/index.js +++ b/packages/firestore/lib/utils/index.js @@ -192,7 +192,8 @@ export function parseSnapshotArgs(args) { * .onSnapshot(SnapshotListenOptions, ... */ if (isObject(args[0]) && !isPartialObserver(args[0])) { - snapshotListenOptions.includeMetadataChanges = Boolean(args[0].includeMetadataChanges); + snapshotListenOptions.includeMetadataChanges = + args[0].includeMetadataChanges == null ? false : args[0].includeMetadataChanges; if (isFunction(args[1])) { /** * .onSnapshot(SnapshotListenOptions, Function);