Skip to content

Commit 5ac6347

Browse files
committed
(tests) fix missing props
1 parent ebe266e commit 5ac6347

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tests/unit/RoomsList.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ beforeEach(() => {
1212
textMessages: mockData.textMessages,
1313
showRoomsList: true,
1414
showAddRoom: mockData.showAddRoom,
15+
showSearch: mockData.showSearch,
1516
textFormatting: mockData.textFormatting,
1617
isMobile: false,
1718
rooms: mockData.rooms,
1819
loadingRooms: mockData.loadingRooms,
1920
roomsLoaded: mockData.roomsLoaded,
2021
room: mockData.rooms[0],
21-
roomActions: mockData.roomActions
22+
roomActions: mockData.roomActions,
23+
linkOptions: mockData.linkOptions
2224
}
2325
})
2426
})

tests/unit/mock-data.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const messagesLoaded = true
1111
const roomActions = [{ title: 'A room action' }]
1212
const menuActions = [{ title: 'A menu action' }]
1313
const messageActions = [{ title: 'A message action' }]
14+
const showSearch = true
1415
const showAddRoom = true
1516
const showSendIcon = true
1617
const showFiles = true
@@ -25,6 +26,7 @@ const responsiveBreakpoint = 10
2526
const singleRoom = false
2627
const theme = 'dark'
2728
const acceptedFiles = '*'
29+
const linkOptions = { disabled: false, target: '_blank' }
2830
const styles = { general: { color: '#0a0a0a' } }
2931

3032
export default {
@@ -41,6 +43,7 @@ export default {
4143
roomActions,
4244
menuActions,
4345
messageActions,
46+
showSearch,
4447
showAddRoom,
4548
showSendIcon,
4649
showFiles,
@@ -55,5 +58,6 @@ export default {
5558
singleRoom,
5659
theme,
5760
acceptedFiles,
61+
linkOptions,
5862
styles
5963
}

0 commit comments

Comments
 (0)