Closed tjmonsi closed 8 years ago
Hey this is great. But you should this PR to the SSR branch.
When you send the PR to that. I'll try to see what's going on here. BTW what's the catchable
function?
Eeek i put it on main... Shoot. Ill PR this on SSR. Sorry about that
On Fri, 18 Dec 2015 15:25 Arunoda Susiripala notifications@github.com wrote:
Hey this is great. But you should this PR to the SSR branch.
— Reply to this email directly or view it on GitHub https://github.com/kadirahq/flow-router/pull/455#issuecomment-165700516.
catchable function is a wrap around of try/catch to catch the Assertion error and put it on done(e). I just copied it from smithy:describe because we still can't use ES2015 import as of now.
I understand what idempotent routing does (which should not re-run the action function when Router.go is called). I just don't get it why it fails to work on the test case when I transferred it to new ES2015 BDD style test case.
Here's the snippet of the test case on the old code.
and here's the new BDD style
The output turns out this way:
Can you check what I did wrong?