-
Notifications
You must be signed in to change notification settings - Fork 83
[FSSDK-11100] JS - rewrite audience_avaluator tests in TypeScript #1001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FSSDK-11100] JS - rewrite audience_avaluator tests in TypeScript #1001
Conversation
…ra/FSSDK-11100_audience_evaluator_test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just one NIT
|
||
expect(result).toBe(false); | ||
|
||
vi.restoreAllMocks(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this redundant restore call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
}; | ||
|
||
const audiencesById: { | ||
[id: string]: Audience; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: indentation
Summary
Re-wrote the following test in typescript:
The old tests are written using (mocha + chai + sinon). Used
vitest
features in the new tests.Test plan
Issues