Fix hash == ""
This commit is contained in:
parent
5e0a397631
commit
474561600e
2 changed files with 20 additions and 9 deletions
|
@ -174,6 +174,12 @@ bd75b3e080945674c0351f75e0db33d1e90986fa07b318ea7edf776f5eef38d4`);
|
|||
expect(location).toBe("https://foo.bar/#/<redacted_screen_name>/<redacted>/<redacted>");
|
||||
});
|
||||
|
||||
it("Should currently handle an empty hash", async () => {
|
||||
const location = await getRedactedCurrentLocation(
|
||||
"https://foo.bar", "", "/", Anonymity.Anonymous);
|
||||
expect(location).toBe("https://foo.bar/");
|
||||
});
|
||||
|
||||
it("Should identify the user to posthog if pseudonymous", async () => {
|
||||
analytics.init(Anonymity.Pseudonymous);
|
||||
await analytics.identifyUser("foo");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue