mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Fix test in 'NotificationsTable.spec.js' for new 'user-teaser' component
This commit is contained in:
parent
71cf2a397a
commit
e563887022
@ -152,7 +152,7 @@ describe('NotificationsTable.vue', () => {
|
||||
})
|
||||
|
||||
it('renders me as the triggerer', () => {
|
||||
const triggererName = thirdRowNotification.find('.username')
|
||||
const triggererName = thirdRowNotification.find('.userName-for-test')
|
||||
expect(triggererName.text()).toEqual('myName')
|
||||
})
|
||||
|
||||
|
||||
@ -20,14 +20,14 @@
|
||||
<div class="info">
|
||||
<span class="text">
|
||||
<span class="slug">{{ userSlug }}</span>
|
||||
<span v-if="dateTime">{{ userName }}</span>
|
||||
<span class="userName-for-test" v-if="dateTime">{{ userName }}</span>
|
||||
</span>
|
||||
<span v-if="dateTime" class="text">
|
||||
<base-icon name="clock" />
|
||||
<hc-relative-date-time :date-time="dateTime" />
|
||||
<slot name="dateTime"></slot>
|
||||
</span>
|
||||
<span v-else class="text">{{ userName }}</span>
|
||||
<span v-else class="text userName-for-test">{{ userName }}</span>
|
||||
</div>
|
||||
</nuxt-link>
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user