File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
tests/unit/specs/components/maprecorder Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ describe('maprecorder/MapRecorderWin.vue', () => {
5454 expect ( vm . timerHandle ) . to . be . null ;
5555 expect ( vm . error ) . to . be . false ;
5656 // Supported codecs under chrome.
57- expect ( vm . mimeType ) . to . equal ( 'video/webm ') ;
58- expect ( vm . mimeTypes ) . to . have . lengthOf ( 3 ) ;
57+ expect ( vm . mimeType ) . to . be . a ( 'string ') ;
58+ expect ( vm . mimeTypes ) . to . be . an ( 'array' ) ;
5959 } ) ;
6060
6161 afterEach ( ( ) => {
@@ -71,12 +71,9 @@ describe('maprecorder/MapRecorderWin.vue', () => {
7171 vm = comp . vm ;
7272 } ) ;
7373
74- it ( 'correct supported mime types under chrome' , ( ) => {
74+ it ( 'supports at least one mime type under chrome' , ( ) => {
7575 const mimeTypes = vm . getSupportedMimeTypes ( ) ;
76- expect ( mimeTypes ) . to . have . lengthOf ( 3 ) ;
77- expect ( mimeTypes [ 0 ] ) . to . equal ( 'video/webm' ) ;
78- expect ( mimeTypes [ 1 ] ) . to . equal ( 'video/mp4' ) ;
79- expect ( mimeTypes [ 2 ] ) . to . equal ( 'video/x-matroska' ) ;
76+ expect ( mimeTypes ) . to . be . an ( 'array' ) . that . is . not . empty ;
8077 } ) ;
8178
8279 it ( 'start / stop recording sets correct states' , ( ) => {
You can’t perform that action at this time.
0 commit comments