Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

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.


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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants