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 for checkAndEvaluateMath as it currently crashed on boolean expressions #183

Conversation

thomasmattheussen
Copy link
Contributor

This seems like a slightly better way to handle it?

@changeset-bot
Copy link

changeset-bot bot commented Aug 1, 2023

🦋 Changeset detected

Latest commit: 63a96a2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tokens-studio/sd-transforms Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@jorenbroekema jorenbroekema left a comment

Choose a reason for hiding this comment

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

Could you add a test for the boolean use case you described? Then we make sure we don't regress in the future. but the change looks good to me

@thomasmattheussen
Copy link
Contributor Author

The test brought something to light I think. The test fails, because it would return the booleans as strings I think?
(it succeeds when .to.equal('false') instead of .to.equal(false))

So maybe another approach is needed?

Co-authored-by: thomasmattheussen <thomas.mattheussen@gmail.com>
@jorenbroekema jorenbroekema force-pushed the fix/check-and-evaluatemath-booleans branch from bf7283e to 63a96a2 Compare August 2, 2023 08:03
@jorenbroekema
Copy link
Member

I pushed a new commit as a proposal on how we could tackle this, but I have changed the changeset to be a minor, as this could technically be a breaking change for users. What do you think?

@thomasmattheussen
Copy link
Contributor Author

Looks good to me!

@jorenbroekema jorenbroekema merged commit 72f4233 into tokens-studio:main Aug 2, 2023
1 check passed
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