Skip to content

refactor: extract MIME utilities into modules/message-utils.js#193

Open
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-74
Open

refactor: extract MIME utilities into modules/message-utils.js#193
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-74

Conversation

@JuliaKalder
Copy link
Copy Markdown
Owner

Summary

  • Moves findPart and extractBody out of background.js into a new modules/message-utils.js module as named exports
  • Updates background.js to import them from the new module
  • Adds tests/message-utils.test.js with 11 unit tests covering both functions (all passing)

Verification steps

  • npm test — all 11 new tests pass; pre-existing failures in template-store.test.js are unrelated to this change
  • background.js no longer contains inline definitions of findPart or extractBody

Fixes #74

….js (#74)

Move two pure MIME utility functions out of the background.js orchestration
layer into a dedicated module with named exports, and add unit tests.
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.

[MEDIUM] MIME body-extraction utilities (findPart, extractBody) embedded in background.js orchestration layer instead of a module

1 participant