bbc-a11y icon indicating copy to clipboard operation
bbc-a11y copied to clipboard

fix: remove deprecated test functions

Open mike-r-harris opened this issue 6 months ago • 0 comments

Resolves #NUMBER

Description: Upgraded Commander from v5 to v7 Updated deprecated test functions

Type of change:

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Why is this change required?: Keeping changes up to date with latest testing lib versions

Code changes:

  • Updated args.js to ensure Commander returns the correct config
  • Replaced .equal( with .strictEqual(
  • Replaced .notEqual( with .notStrictEqual(
  • Replaced .deepEqual( with .deepStrictEqual(

Checklist:

  • [x] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have read the CONTRIBUTING document.
  • [ ] I have added tests to cover my changes.
  • [x] All new and existing tests passed.

mike-r-harris avatar Jun 20 '25 11:06 mike-r-harris