Skip to content

Conversation

@kinyoklion
Copy link
Member

No description provided.

client.close();
});

it('evaluates a flag which has a fallthrough and a rule', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a clone of the test case the user encountered.


expect(flagCopy.build(1).rules).toEqual(flagRules);
const builtFlag = flagCopy.build(1);
expect(builtFlag.fallthrough).toEqual({ variation: 1 });
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test only verified rules before. Now it covers the basics as well.

}
if (data.fallthroughVariation !== undefined) {
this.data.offVariation = data.offVariation;
this.data.fallthroughVariation = data.fallthroughVariation;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual copy/paste error.

@kinyoklion kinyoklion merged commit e9cf09d into main Jul 5, 2023
@kinyoklion kinyoklion deleted the rlamb/fix-testdata-fallthrough-clone branch July 5, 2023 16:31
@github-actions github-actions bot mentioned this pull request Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants