if (typeof global.atom === 'undefined') {
  global.atom = {
    notifications: {
      addError: function (desc, obj) {
        return new Promise(function (resolve, reject) {
          console.log('wtf', obj)
          reject(obj.error)
        })
      }
    }
  }
}

if (typeof global.atom === 'undefined') {
  global.atom = {
    notifications: {
      addError: function (desc, obj) {
        return new Promise(function (resolve, reject) {
          reject(obj.error)
        })
      }
    }
  }
}

Stop logging error notifications in tests
Stop logging error notifications in tests

At least with Node.js v6 these unhandled rejections get reported to the console already.
