-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix member ordering for creating member based channels #591
Conversation
Btw, it is a unit test than an integration test, we could remove it too since covered. |
test/integration/channels.js
Outdated
@@ -123,7 +123,7 @@ describe('Channels - Constructor', function () { | |||
|
|||
it('short version with options', function (done) { | |||
const channel = client.channel('messaging', { members: ['tommaso', 'thierry'] }); | |||
expect(channel.data).to.eql({ members: ['tommaso', 'thierry'] }); | |||
expect(channel.data).to.eql({ members: ['thierry', 'tommaso'] }); |
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.
this test seems to be a better fit for unit tests. is this due to recent changes? the member order should remain the same
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.
yes, it comes from member based channel creation fix.
I agree with unit.
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.
oh I see, the sort is applied in place, I think it's better to revert that change
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.
I will make a fix to sort the copy and move this test to unit tests.
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.
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.
ahh, updated this one
e072a9d
to
23c1d8a
Compare
Size Change: -67 B (0%) Total Size: 214 kB
|
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.
🌮
since it's sorted now.