jamesplease/backbone.premium-router

Test the promise being rejected due to an error

Open

#19 opened on Feb 26, 2015

 (1 comment) (0 reactions) (0 assignees)JavaScript (2 forks)github user discovery
help wantedtests

Repository metrics

Stars
 (7 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

These are (roughly) the tests.

I was unable to do this because mocha flips out when the fetch method throws an error. If anyone knows a way to test this code path – let me know!

Contributor guide