Skip to content

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Sep 24, 2025

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@Uzlopak Uzlopak marked this pull request as ready for review September 24, 2025 06:56
@Uzlopak Uzlopak requested a review from Copilot September 24, 2025 07:42
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors webidl test files to use the test context (t) parameter instead of directly importing and using the assert module. This modernizes the test structure to follow Node.js test runner conventions.

Key Changes

  • Remove direct assert module imports from all test files
  • Update test function signatures to accept the test context parameter (t)
  • Replace assert.* calls with t.assert.* calls throughout the test suite

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/webidl/util.js Refactors test functions to use test context for assertions
test/webidl/helpers.js Updates interface and dictionary converter tests to use test context
test/webidl/errors.js Modernizes error handling tests with test context
test/webidl/converters.js Converts all converter tests to use test context pattern

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

1 participant