From 8b34a2f7551375740aa8a4a1079d29ca730c19b1 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Thu, 13 Aug 2020 18:21:54 +0000 Subject: [PATCH] node fixtures: Use better data for presence. The dispatch for presence is a trivial one-liner, so the test just makes sure three important parameters get passed along. We will eventually want to use the fixtures data in other presence-related tests, but for now the only goal is to make it pass the schema checks. --- frontend_tests/node_tests/lib/events.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend_tests/node_tests/lib/events.js b/frontend_tests/node_tests/lib/events.js index d8eaff4cef..ce1d1c6b24 100644 --- a/frontend_tests/node_tests/lib/events.js +++ b/frontend_tests/node_tests/lib/events.js @@ -166,9 +166,12 @@ exports.fixtures = { email: "alice@example.com", user_id: 42, presence: { - client_name: "electron", - is_mirror_dummy: false, - // etc. + electron: { + status: "active", + timestamp: fake_now, + client: "electron", + pushable: false, + }, }, server_timestamp: fake_now, },