mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Test that the community store commit is not send if community.name is not ''
This commit is contained in:
parent
b26120a407
commit
37c90ae6a5
@ -106,12 +106,14 @@ describe('Login', () => {
|
||||
|
||||
describe('Community Data', () => {
|
||||
beforeEach(() => {
|
||||
jest.clearAllMocks()
|
||||
mocks.$store.state.community = {
|
||||
name: 'Gradido Entwicklung',
|
||||
url: 'http://localhost/vue/',
|
||||
registerUrl: 'http://localhost/vue/register',
|
||||
description: 'Die lokale Entwicklungsumgebung von Gradido.',
|
||||
}
|
||||
wrapper = Wrapper()
|
||||
})
|
||||
|
||||
it('has a Community name', () => {
|
||||
@ -123,6 +125,10 @@ describe('Login', () => {
|
||||
'Die lokale Entwicklungsumgebung von Gradido.',
|
||||
)
|
||||
})
|
||||
|
||||
it('does not update community', () => {
|
||||
expect(mockStoreCommit).not.toBeCalled()
|
||||
})
|
||||
})
|
||||
|
||||
describe('links', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user