Skip to content

Navigation Menu

Sign in
Sign up

[Supersedes #30] Add unit tests using keploy + fix browser global bindings - #31

Closed
febuz wants to merge 2 commits into
fossasia:master from
febuz:unit-tests
Closed

[Supersedes #30] Add unit tests using keploy + fix browser global bindings #31
febuz wants to merge 2 commits into
fossasia:master from
febuz:unit-tests

Conversation

@febuz

@febuz febuz commented Jun 17, 2026

Copy link
Copy Markdown

This builds on #30 by @TvisharajiK and adds the missing global window bindings in app/controller/com_handler.js so the existing HTML onclick handlers continue to work after the CommonJS refactor.

Changes from #30:

  • Expose refreshPorts, updateMachineType, configureKnit, createJob, startKnit on window when running in a browser.
  • All 8 Jest tests pass.

Closes #30.

TvisharajiK and others added 2 commits February 5, 2025 14:56
The refactor to a CommonJS module broke the existing HTML buttons that
expect refreshPorts/updateMachineType/configureKnit/createJob/startKnit
in the global scope. This keeps module.exports for tests while restoring
window-level bindings for the UI.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @febuz, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sourcery-ai sourcery-ai[bot] sourcery-ai[bot] left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /