You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checkCopy in proof/check.mjs normalizes case, whitespace and quotes before checking required text, but that behavior has no direct unit test.
Add unit tests under proof/test/ for a phrase split across two rendered text boxes, different capitalization, line breaks, straight and curly apostrophes, and a genuinely missing phrase. An empty required-copy list should return no failures. The missing phrase should produce a copy failure that identifies the text.
Use synthetic DOM boxes and call checkCopy directly. Keep this to the existing matching rules, with no browser or model call. Run the new test file with node --test, then npm test.
Activity