-
Notifications
You must be signed in to change notification settings - Fork 192
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
Stuck at Idempotent Routing -> new ES2015 BDD style test cases failing while old Tinytest cases works (now on right branch) #456
base: ssr
Are you sure you want to change the base?
Conversation
|
||
api.addFiles('test/client/_helpers.js', 'client'); | ||
api.addFiles('test/server/_helpers.js', 'server'); | ||
|
||
api.addFiles('test/client/loader.spec.js', 'client'); | ||
api.addFiles('lib/__tests__/loader.js', ['client', 'server']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't put this on the server. Try to put them in client/__tests__
. Also run them only in the client. There a lot of stuff you don't wanna run in the server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually lib/__tests__/loader.js
is just test/common/loader.spec.js
The test/client/loader.spec.js
is in client/__tests__/loader.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay. Right now, I'm in the middle of something. Will do a review tonight. Hope you won't mind that :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's alright. I'm doing something else right now as well. :)
On Fri, 18 Dec 2015 15:46 Arunoda Susiripala notifications@github.com
wrote:
In package.js
#456 (comment):api.addFiles('test/client/_helpers.js', 'client');
api.addFiles('test/server/_helpers.js', 'server');
- api.addFiles('test/client/loader.spec.js', 'client');
- api.addFiles('lib/tests/loader.js', ['client', 'server']);
okay. Right now, I'm in the middle of something. Will do a review tonight.
Hope you won't mind that :)—
Reply to this email directly or view it on GitHub
https://github.com/kadirahq/flow-router/pull/456/files#r48001389.
I am going to go back and add more tests here. :) |
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?