зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #5648 from nextcloud/test/noid/message-add-location
Add Message.vue test for passing in geo-location object
This commit is contained in:
Коммит
2f59f33d02
|
@ -11,6 +11,7 @@ import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
|
|||
import Mention from './MessagePart/Mention'
|
||||
import FilePreview from './MessagePart/FilePreview'
|
||||
import DeckCard from './MessagePart/DeckCard'
|
||||
import Location from './MessagePart/Location'
|
||||
import DefaultParameter from './MessagePart/DefaultParameter'
|
||||
import { findActionButton } from '../../../../test-helpers'
|
||||
|
||||
|
@ -375,6 +376,24 @@ describe('Message.vue', () => {
|
|||
)
|
||||
})
|
||||
|
||||
test('renders geo locations', () => {
|
||||
const params = {
|
||||
'geo-location': {
|
||||
metadata: '{id:123}',
|
||||
type: 'geo-location',
|
||||
},
|
||||
}
|
||||
renderRichObject(
|
||||
'{geo-location}',
|
||||
params, {
|
||||
'geo-location': {
|
||||
component: Location,
|
||||
props: params['geo-location'],
|
||||
},
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
test('renders other rich objects', () => {
|
||||
const params = {
|
||||
'actor': {
|
||||
|
|
Загрузка…
Ссылка в новой задаче