Skip to content

Navigation Menu

Sign in
Sign up

Add unit tests for util helpers - #153

Open
Hashim1999164 wants to merge 1 commit into
digitalocean:master from
Hashim1999164:fix/util-unit-tests
Open

Add unit tests for util helpers #153
Hashim1999164 wants to merge 1 commit into
digitalocean:master from
Hashim1999164:fix/util-unit-tests

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Sep 2, 2026
edited
Loading

Copy link
Copy Markdown

Type of Change

Build Scripts: Adds Jest coverage for files under util that previously had none.

What issue does this relate to?

resolves #70

What should this PR do?

Adds focused unit tests for every exported helper under util, matching the style used by existing plugin tests. This covers fraction reduction, object cloning, array helpers, Markdown It block line extraction, HTML attribute and tag parsing, embed block finding, Prism language helpers, the webpack language filter plugin, DOM helpers, and the KeepHTML Prism plugin.

What are the acceptance criteria?

  1. New tests live next to their util modules as *.test.js files
  2. npm test passes for the util suite
  3. eslint passes on the new test files

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Write tests for utils

1 participant

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