-
Notifications
You must be signed in to change notification settings - Fork 8
[FFM-1264] segment evaluator #6
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
Conversation
src/evaluator.ts
Outdated
|
||
// not found in rules proceed with default serve | ||
variation = fc.defaultServe.variation; | ||
// default serve variation is undefined so continue with distribution |
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.
It doesn't appear that you are testing whether the default serve variation is undefined
@@ -95,11 +95,35 @@ export class CfClient { | |||
boolVariation( | |||
identifier: string, | |||
target: Target, | |||
defaultValue: false, | |||
defaultValue = false, |
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.
Good catch. I make this error ALL the time in TS
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.
Looks great. Just a couple of observations and nit-picks
No description provided.