Skip to content

test: Use common.expectsError in tests

Refactored tests to replace assert.throws(fn, common.expectsError(err)); with common.expectsError(fn, err); in following test files :

  • test/parallel/test-buffer-slow.js
  • test/parallel/test-buffer-tostring-range.js
  • test/parallel/test-child-process-send-type-error.js
  • test/parallel/test-child-process-spawnsync-kill-signal.js
  • test/parallel/test-child-process-stdio.js
  • test/parallel/test-child-process-validate-stdio.js
  • test/parallel/test-common.js
  • test/parallel/test-console-instance.js
  • test/parallel/test-dgram-bind.js
  • test/parallel/test-dgram-create-socket-handle.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