Skip to content

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

Merged
merged 7 commits into from
Jun 27, 2025

Conversation

AlexD717
Copy link
Member

Description

Adds unit tests for required functions in the util folder.

Testing Done

  • All Unit Tests Pass

JIRA Issue

@AlexD717 AlexD717 self-assigned this Jun 27, 2025
@AlexD717 AlexD717 requested review from a team as code owners June 27, 2025 17:45
Copy link
Contributor

@azaleacolburn azaleacolburn left a 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
Copy link
Contributor

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
  ...
@BrandonPacewic BrandonPacewic mentioned this pull request Jun 27, 2025
Copy link
Member

@BrandonPacewic BrandonPacewic left a comment

Choose a reason for hiding this comment

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

🚂

@BrandonPacewic BrandonPacewic merged commit e523022 into dev Jun 27, 2025
15 checks passed
@BrandonPacewic BrandonPacewic deleted the alexey/1932/utility-module-unit-tests branch June 27, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants