Skip to content

Tests failing #51

@juliangilbey

Description

@juliangilbey

Hi!
Maybe I've done something wrong, but I've tried building this from source and running the tests, but they're both failing:

$ nyc mocha


  make error cause
    1) should render the cause
    2) should render extra properties in the full stack


  0 passing (13ms)
  2 failing

  1) make error cause
       should render the cause:

      AssertionError: expected 'TestError: test boom!\n    at Context…' to equal 'TestError: test boom!\n    at Context…'
      + expected - actual

       TestError: test boom!
           at Context.<anonymous> (/home/jdg/debian/spyder-packages/jupyter-notebook/make-error-cause/node-make-error-cause-2.3.0/src/index.spec.ts:12:23)
           at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21)
      -    ... 7 lines matching cause stack trace ...
      -    at processImmediate (node:internal/timers:483:21) {
      -  [cause]: Error: boom!
      -      at Context.<anonymous> (/home/jdg/debian/spyder-packages/jupyter-notebook/make-error-cause/node-make-error-cause-2.3.0/src/index.spec.ts:11:19)
      -      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21)
      -      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5)
      -      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
      -      at /usr/share/nodejs/mocha/lib/runner.js:800:12
      -      at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
      -      at /usr/share/nodejs/mocha/lib/runner.js:602:7
      -      at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
      -      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
      -      at processImmediate (node:internal/timers:483:21)
      -}
      +    at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5)
      +    at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
      +    at /usr/share/nodejs/mocha/lib/runner.js:800:12
      +    at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
      +    at /usr/share/nodejs/mocha/lib/runner.js:602:7
      +    at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
      +    at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
      +    at processImmediate (node:internal/timers:483:21)
       
       The following exception was the direct cause of the above exception:
       
       Error: boom!
      
      at Context.<anonymous> (src/index.spec.ts:19:37)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21)
      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
      at /usr/share/nodejs/mocha/lib/runner.js:800:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
      at /usr/share/nodejs/mocha/lib/runner.js:602:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
      at processImmediate (node:internal/timers:483:21)

  2) make error cause
       should render extra properties in the full stack:
     AssertionError: expected 'TestDataError: test boom!\n    at Con…' to include 'TestDataError: test boom!\n    at Con…'
      at Context.<anonymous> (src/index.spec.ts:58:15)
      at callFn (/usr/share/nodejs/mocha/lib/runnable.js:364:21)
      at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:352:5)
      at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:677:10)
      at /usr/share/nodejs/mocha/lib/runner.js:800:12
      at next (/usr/share/nodejs/mocha/lib/runner.js:592:14)
      at /usr/share/nodejs/mocha/lib/runner.js:602:7
      at next (/usr/share/nodejs/mocha/lib/runner.js:485:14)
      at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:570:5)
      at processImmediate (node:internal/timers:483:21)

I wonder whether it's because make-error has changed its behaviour or something like that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions