mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00: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