Skip to content

test: replace assert.throws with common.expectsError

Replace assert.throws(fn, common.expectsError(err)); with common.expectsError(fn, err); in test/parallel/test-assert-fail.js and test/parallel/test-assert.js

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Merge request reports

Loading