Skip to content

Instantly share code, notes, and snippets.


TheSavior/karma_error.js Secret

Created Nov 3, 2016
What would you like to do?
Use karma error func
it('should reject', function() {
Promise.reject(new Error('unhandled rejection'));
it('should delay', (done) => {
setTimeout(done, 100);
window.addEventListener('unhandledrejection', function(err) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.