Skip to content
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

fix: formatAggrates function #148

Merged
merged 2 commits into from
Mar 10, 2022
Merged

fix: formatAggrates function #148

merged 2 commits into from
Mar 10, 2022

Conversation

tuanddd
Copy link
Contributor

@tuanddd tuanddd commented Mar 9, 2022

No description provided.

@tuanddd tuanddd requested a review from JasonBerry March 9, 2022 09:37
typeof field === "object" &&
typeof item.value === "object"
) {
field = {
Copy link
Contributor

Choose a reason for hiding this comment

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

field is never read after assigning it. Should we be adding it to obj or is the intention to throw it away?

@@ -0,0 +1,38 @@
import { formatAggregates } from "../src/index";
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

This test is not being run in CI. Need to rename to format-aggregates.test.ts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah right! 🤦‍♂️ No wonder all tests passed when I ran it, I'll make changes.

@tuanddd tuanddd requested a review from JasonBerry March 10, 2022 08:11
@tuanddd tuanddd merged commit ca81366 into master Mar 10, 2022
@tuanddd tuanddd deleted the fix/format-aggregate branch March 10, 2022 13:49
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.

2 participants