@@ -72,12 +72,6 @@ describe('initializeAttachmentMetadata', () => {
72
72
expect ( hasFileAttachmentInMessage ( msgModel ) ) . to . be . eq ( false ) ;
73
73
} ) ;
74
74
75
- it ( 'first attachment is audio should return false' , ( ) => {
76
- const msgModel = generateFakeIncomingPrivateMessage ( ) ;
77
- msgModel . set ( { attachments : [ { contentType : 'audio/mp3' } ] } ) ;
78
- expect ( hasFileAttachmentInMessage ( msgModel ) ) . to . be . eq ( false ) ;
79
- } ) ;
80
-
81
75
it ( 'first attachment is flagged as voice message should return false' , ( ) => {
82
76
const msgModel = generateFakeIncomingPrivateMessage ( ) ;
83
77
msgModel . set ( {
@@ -240,15 +234,6 @@ describe('initializeAttachmentMetadata', () => {
240
234
expect ( mt . hasVisualMediaAttachments ) . to . be . eq ( 1 ) ;
241
235
} ) ;
242
236
243
- it ( 'has one audio attachment only' , ( ) => {
244
- const msgModel = generateFakeIncomingPrivateMessage ( ) ;
245
- msgModel . setKey ( 'attachments' , [ { contentType : 'audio/mp3' } ] ) ;
246
- const mt = getAttachmentMetadata ( msgModel ) ;
247
- expect ( mt . hasAttachments ) . to . be . eq ( 1 ) ;
248
- expect ( mt . hasFileAttachments ) . to . be . eq ( 0 ) ;
249
- expect ( mt . hasVisualMediaAttachments ) . to . be . eq ( 0 ) ;
250
- } ) ;
251
-
252
237
it ( 'has one file attachment only' , ( ) => {
253
238
const msgModel = generateFakeIncomingPrivateMessage ( ) ;
254
239
msgModel . setKey ( 'attachments' , [ { contentType : 'whatever' } ] ) ;
0 commit comments