test/context/index.js
/**
   * Checks that the notifications do not contain errors.
   */
Checks that the notifications do not contain errors.
Checks that the notifications do not contain errors .
assertNoNotifyErrors(notifications) {
    notifications.forEach(({ error }) => {
      try { ok(!error) } catch (err) {
        error.message = `A test contained an error in notification: ${error.message}\n${error.stack.replace(/^[\s\S]+?\n/, '')}`
        error.code = 'TEST_HAS_ERROR'
        throw error
      }
    })
  }
assertNoNotifyErrors ( notifications ) { notifications . forEach ( ( { error } ) => { try { ok ( ! error ) } catch ( err ) { error . message = ` ${ error . message } \n ${ error . stack . replace ( / ^[\s\S]+?\n / , '' ) } ` error . code = 'TEST_HAS_ERROR' throw error } } ) }
Checks that the notifications do not contain errors.
Checks that the notifications do not contain errors .