-
Notifications
You must be signed in to change notification settings - Fork 4
Removing control message checks from utility functions #37
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
base: main
Are you sure you want to change the base?
Conversation
await createGroup(platform, device1, userA, device2, userB, device3, userC, testGroupName); | ||
// Close server and devices | ||
|
||
const userAMessage = `${userOne.userName} to ${testGroupName}`; |
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.
is this on purpose that you pasted the whole createGroup function here?
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.
yeah, essentially I want to test the functionality of creating a group but with the control message checks and leave the createGroup function clear (so its just a utility function).
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.
maybe that should be a boolean argument in the createGroup function instead, where we skip, or not skip some stuffs?
duplicating code is bad
|
||
await newContact(platform, device1, userA, device2, userB); | ||
// await newContact(platform, device1, userA, device2, Bob); |
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.
same comment
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.
Same as above, still want to do the action of creating a contact but with the control message checks and remove the checks from the function
No description provided.