-
Notifications
You must be signed in to change notification settings - Fork 89
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
feature/Display "<user> has joined <community>" message when unregistered user joins[NEW] #2067
Conversation
This reverts commit 4339aef.
packages/state-manager/src/sagas/communities/communities.selectors.test.ts
Show resolved
Hide resolved
...ages/state-manager/src/sagas/communities/saveCommunityMetadata/saveCommunityMetadata.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/messages.selectors.ts
Outdated
Show resolved
Hide resolved
describe('messages helper', () => { | ||
const username = 'johnny' | ||
|
||
const generalChannel: PublicChannelStorage = { |
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.
Ideally you'd use factory-girl for mocking channel objects. It's minor though.
const generalChannel = (await factory.build<typeof publicChannels.actions.addChannel>('PublicChannel', {
id: generateChannelId('general'),
name: 'general',
owner: username
})).payload
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.ts
Outdated
Show resolved
Hide resolved
packages/state-manager/src/sagas/messages/verifyMessage/verifyMessages.saga.test.ts
Outdated
Show resolved
Hide resolved
it('verify standard message ', async () => { | ||
if (!alice.userCsr?.userCsr) throw Error('no Alice userCsr') | ||
|
||
const message: ChannelMessage = { |
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.
Wonder why didn't you use factory-girl to mock message
object as you did for users and channels? It covers signature for you
Pull Request Checklist
(Optional) Mobile checklist
Please ensure you completed the following checks if you did any changes to the mobile package: