Skip to content
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

fixed names order according to data/testdata.json names order #168

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vnevgen
Copy link

@vnevgen vnevgen commented Nov 4, 2015

Can't understand why names in test are listed in another order.

@rmurphey
Copy link
Owner

rmurphey commented Nov 4, 2015

The names in the test are in alphabetical order; the code that makes the test pass should put the names in alphabetical order as well. If you want to amend this PR to restore the existing test, but add a comment explaining the alphabetization requirement, we could land that PR.

@vnevgen
Copy link
Author

vnevgen commented Nov 4, 2015

Where is the best to place a comment?
tests/app/async.js (in tests) or app/async.js (in functions implementations)

@rmurphey
Copy link
Owner

rmurphey commented Nov 4, 2015

I'd personally think in the test, but where ever you think it would be most useful is fine by me.

@vnevgen
Copy link
Author

vnevgen commented Nov 4, 2015

I think that it will be more useful to see this caution when somebody already implements this function. So I've placed in functions implementations.

@@ -33,7 +33,7 @@ describe('async behavior', function() {

asyncAnswers.manipulateRemoteData(url).then(function(result) {
expect(result).to.have.length(5);
expect(result.join(' ')).to.eql('Adam Alex Matt Paul Rebecca');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that you've added the note in the code, this reordering isn't necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants