Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

305 B
Raw Blame
import {describe,it} from "../../../../index.js";

describe('test1', () => {
  it('test', () => {
    const errorA = {};
    const objectB = {toA: errorA};
    errorA.toB = objectB;

    const error = new Error("Oh no!");
    error.error = errorA;
    error.values = [errorA];

    throw error;
  });
});