Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sgravrock/ng-unhandled-rejection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This demonstrates a couple of issues with unhandled promise rejection handling in Angular tests.

To run, do these steps in each of the unhandled-rejection-zonejs, unhandled-rejection-zoneless, and no-ng directories:

  1. npm install
  2. npm t
  3. If a browser isn't automatically launched, go to http://localhost:8888/.

Expected result: The spec should fail with a single "Unhandled promise rejection: Error: nope" error.

Observed:

  • In unhandled-rejection-zonejs, the spec passes.
  • In unhandled-rejection-zonelesss, the spec fails with two copies of the expected error.

About

Repro of unhandled promise rejection handling bugs in the Angular test toolchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published