test/context/index.js
/**
   * Assert that the test suite does not contain tests with errors by traversing child tests and test suites.
   * @param {TestSuite} ts instance of a TestSuite
   * @throws Throws if a test had errors in it.
   */
Assert that the test suite does not contain tests with errors by traversing child tests and test suites.
@param {TestSuite} ts instance of a TestSuite
@throws Throws if a test had errors in it.
Assert that the test suite does not contain tests with errors by traversing child tests and test suites . @param { TestSuite } ts instance of a TestSuite @throws Throws if a test had errors in it .
assertNoErrorsInTestSuite(ts, e = erotic(true)) {
    const { name, tests: t } = ts
    t.forEach((test) => {
      if (test instanceof Test) {
        if (test.error) {
          const message = getErrMessage(name, test)
          const er = e(message)
          throw er
        }
      } else if (test instanceof TestSuite) {
        C.assertNoErrorsInTestSuite(test, e)
      } else {
        throw e('test is not a test or a test suite') 
      }
    })
  }
assertNoErrorsInTestSuite ( ts , e = erotic ( true ) ) { const { name , tests : t } = ts t . forEach ( ( test ) => { if ( test instanceof Test ) { if ( test . error ) { const message = getErrMessage ( name , test ) const er = e ( message ) throw er } } else if ( test instanceof TestSuite ) { C . assertNoErrorsInTestSuite ( test , e ) } else { throw e ( 'test is not a test or a test suite' ) } } ) }
Assert that the test suite does not contain tests with errors by traversing child tests and test suites.
Assert that the test suite does not contain tests with errors by traversing child tests and test suites .
// test the tests