-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create file getAllRoutes and add tests #47
Conversation
Sweet, nice work! I think an Object might indeed be valuable, as it allows for some interesting tricks. People can then get all routes from the object by using Small comment here though: as this is a low level package I'm cool if you use some ES6 in the tests, but none (except for |
I update the PR, i'm not sure i did what you wanted so let me know if it's not what you had in mind :) {
'/foo': function(x, y) { return x * y },
'/foo/bar': function(x, y) { return x / y},
'/bar/bchi': function(x, y) { return x%y}
} i think i delete all the es6 stuff, but since i didn't write es5 for quite some time i'm not sure about what is es5 and es6 anymore :/ |
I have no idea why is only testing my test file. |
odd, not sure why it's failing - perhaps try updating deps, running |
implementation is looking good tho (: |
In local when i try npm run test. It does all the tests. It's still works on local. |
1 similar comment
hah, yeah it also works on my machine haha On Tue, Oct 25, 2016 at 4:57 PM Coveralls notifications@github.com wrote:
|
Hi guys. After looking at your previous builds your cover script is at fault. Running Until now all your coverage was only running the test To fix it you only need to do this in your package.json "test-cov": "NODE_ENV=test istanbul cover tape -- test/*" Hope it helped ;) Cheers |
es6 in test for walk.js break travis. I will correct them tomorrow |
2 similar comments
Niceee - is this ready for review now? On Thu, Oct 27, 2016, 10:08 AM Coveralls notifications@github.com wrote:
|
It is :) |
Do i need to do something here. Or you just didn't have the time to look at it ? |
Thanks so much for this! - sorry for not merging earlier; been a bit low on bandwidth lately ✨ |
|
A first try, what do you think about this implementation ?
I was thinking maybe add an object instead of a string to accès path and cb.
And maybe an object or array with the param keys.