diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-06-14 18:03:51 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-06-17 17:48:26 +0300 |
commit | 2f2b6b9679efd3c7f262499a31f9058b2a7f03c5 (patch) | |
tree | c8b5097ab8031d2c36aec3a844c5234209364c13 /src/components/MessagesList/MessagesGroup/Message/Message.spec.js | |
parent | 29b2dd55ac8d7d593d0a1fb0b4bf09e01137ee42 (diff) |
Lint fix
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/MessagesList/MessagesGroup/Message/Message.spec.js')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/Message.spec.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/Message.spec.js b/src/components/MessagesList/MessagesGroup/Message/Message.spec.js index cf0832466..8d4859224 100644 --- a/src/components/MessagesList/MessagesGroup/Message/Message.spec.js +++ b/src/components/MessagesList/MessagesGroup/Message/Message.spec.js @@ -324,12 +324,12 @@ describe('Message.vue', () => { test('renders file previews', () => { const params = { - 'actor': { + actor: { id: 'alice', name: 'Alice', type: 'user', }, - 'file': { + file: { path: 'some/path', type: 'file', }, @@ -337,13 +337,13 @@ describe('Message.vue', () => { renderRichObject( '{file}', params, { - 'actor': { + actor: { component: Mention, - props: params['actor'], + props: params.actor, }, - 'file': { + file: { component: FilePreview, - props: params['file'], + props: params.file, }, } ) @@ -351,7 +351,7 @@ describe('Message.vue', () => { test('renders deck cards', () => { const params = { - 'actor': { + actor: { id: 'alice', name: 'Alice', type: 'user', @@ -364,9 +364,9 @@ describe('Message.vue', () => { renderRichObject( '{deck-card}', params, { - 'actor': { + actor: { component: Mention, - props: params['actor'], + props: params.actor, }, 'deck-card': { component: DeckCard, @@ -396,12 +396,12 @@ describe('Message.vue', () => { test('renders other rich objects', () => { const params = { - 'actor': { + actor: { id: 'alice', name: 'Alice', type: 'user', }, - 'unknown': { + unknown: { path: 'some/path', type: 'unknown', }, @@ -409,13 +409,13 @@ describe('Message.vue', () => { renderRichObject( '{unknown}', params, { - 'actor': { + actor: { component: Mention, - props: params['actor'], + props: params.actor, }, - 'unknown': { + unknown: { component: DefaultParameter, - props: params['unknown'], + props: params.unknown, }, } ) |