-
Notifications
You must be signed in to change notification settings - Fork 60
Utility Module Unit Tests [AARD-1932]
#1178
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
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
|
||
test("Evaluates Subtraction of Width (W) and Height (H) Units Correctly", () => { | ||
const expr = DOMUnitExpression.fromUnit(0.5, "w").sub(DOMUnitExpression.fromUnit(0.2, "h")) | ||
// 0.5 * 400 - 0.2 * 200 = 200 - 40 = 160 |
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.
Very helpful comments!
* dev: (25 commits) Update fission/src/systems/preferences/PreferencesSystem.ts Undo vite.config.ts timout increase Removed formatting Timeout changed back Typo vite.config.ts no auto format No Auto Format on vite.config.ts Unit test timeout set to one minute format Update fission/src/ui/panels/configuring/assembly-config/ConfigurePanel.tsx Update fission/src/systems/preferences/PreferencesSystem.ts Update fission/src/ui/panels/configuring/assembly-config/ConfigurePanel.tsx Clamp Function Unit Test center download + abstraction fix: upgrade three from 0.159.0 to 0.177.0 UI download all assets Replace compress with minify Update vite.config.ts input schemes save/cancel logic ...
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.
🚂
Description
Adds unit tests for required functions in the util folder.
Testing Done
JIRA Issue