-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f0b334
commit d72b287
Showing
9 changed files
with
1,822 additions
and
1,663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,14 @@ describe('FunctionalTests / Feature Flags', () => { | |
resetRequests(token) | ||
|
||
// wait for decide callback | ||
await new Promise((res) => setTimeout(res, 500)) | ||
await new Promise<void>((resolve: () => void) => setTimeout(resolve, 500)) | ||
|
||
// Person properties set here should also be sent to the decide endpoint. | ||
posthog.identify('test-id', { | ||
email: '[email protected]', | ||
}) | ||
|
||
await new Promise((res) => setTimeout(res, 500)) | ||
await new Promise((resolve: () => void) => setTimeout(resolve, 500)) | ||
|
||
await waitFor(() => { | ||
expect(getRequests(token)['/decide/']).toEqual([ | ||
|
@@ -72,7 +72,7 @@ describe('FunctionalTests / Feature Flags', () => { | |
|
||
// wait for decide callback | ||
// eslint-disable-next-line compat/compat | ||
await new Promise((res) => setTimeout(res, 500)) | ||
await new Promise((resolve: () => void) => setTimeout(resolve, 500)) | ||
|
||
// First we identify with a new distinct_id but with no properties set | ||
posthog.identify('test-id') | ||
|
@@ -140,7 +140,7 @@ describe('FunctionalTests / Feature Flags', () => { | |
|
||
// wait for decide callback | ||
// eslint-disable-next-line compat/compat | ||
await new Promise((res) => setTimeout(res, 500)) | ||
await new Promise((resolve: () => void) => setTimeout(resolve, 500)) | ||
|
||
// now second call should've fired | ||
await waitFor(() => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.