@@ -259,8 +259,7 @@ describe("<RoomSummaryCard />", () => {
259
259
} ) ;
260
260
261
261
describe ( "pinning" , ( ) => {
262
- it ( "renders pins options when pinning feature is enabled" , ( ) => {
263
- mocked ( settingsHooks . useFeatureEnabled ) . mockImplementation ( ( feature ) => feature === "feature_pinning" ) ;
262
+ it ( "renders pins options" , ( ) => {
264
263
const { getByText } = getComponent ( ) ;
265
264
266
265
expect ( getByText ( "Pinned messages" ) ) . toBeInTheDocument ( ) ;
@@ -291,9 +290,7 @@ describe("<RoomSummaryCard />", () => {
291
290
describe ( "video rooms" , ( ) => {
292
291
it ( "does not render irrelevant options for element video room" , ( ) => {
293
292
jest . spyOn ( room , "isElementVideoRoom" ) . mockReturnValue ( true ) ;
294
- mocked ( settingsHooks . useFeatureEnabled ) . mockImplementation (
295
- ( feature ) => feature === "feature_video_rooms" || feature === "feature_pinning" ,
296
- ) ;
293
+ mocked ( settingsHooks . useFeatureEnabled ) . mockImplementation ( ( feature ) => feature === "feature_video_rooms" ) ;
297
294
const { queryByText } = getComponent ( ) ;
298
295
299
296
// options not rendered
@@ -305,10 +302,7 @@ describe("<RoomSummaryCard />", () => {
305
302
it ( "does not render irrelevant options for element call room" , ( ) => {
306
303
jest . spyOn ( room , "isCallRoom" ) . mockReturnValue ( true ) ;
307
304
mocked ( settingsHooks . useFeatureEnabled ) . mockImplementation (
308
- ( feature ) =>
309
- feature === "feature_element_call_video_rooms" ||
310
- feature === "feature_video_rooms" ||
311
- feature === "feature_pinning" ,
305
+ ( feature ) => feature === "feature_element_call_video_rooms" || feature === "feature_video_rooms" ,
312
306
) ;
313
307
const { queryByText } = getComponent ( ) ;
314
308
0 commit comments