You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Add test for silently ignoring messages when not initialised
This commit is contained in:
@ -81,4 +81,12 @@ describe("PosthogAnalytics", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("Should silently not send messages if not inititalised", () => {
|
||||||
|
analytics.track<ITestEvent>("jest_test_event", {
|
||||||
|
foo: "bar",
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(fakePosthog.capture.mock.calls.length).toBe(0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user