Skip to content

armgit / mocha

Public Imported from GitHub
0

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

166 B
Raw Blame
it('should emit an unhandled rejection', async function() {
  setTimeout(() => {
    Promise.resolve().then(() => {
      throw new Error('yikes');
    });
  });
});