From 6557de0733f5059fc0cd790d06d9335d5574376c Mon Sep 17 00:00:00 2001 From: Christian Mayer Date: Thu, 20 Jun 2024 12:52:03 +0200 Subject: [PATCH] Fix MapRecorder unit tests --- .../specs/components/maprecorder/MapRecorderWin.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/unit/specs/components/maprecorder/MapRecorderWin.spec.js b/tests/unit/specs/components/maprecorder/MapRecorderWin.spec.js index c5728d99..d09f49a9 100644 --- a/tests/unit/specs/components/maprecorder/MapRecorderWin.spec.js +++ b/tests/unit/specs/components/maprecorder/MapRecorderWin.spec.js @@ -47,7 +47,7 @@ describe('maprecorder/MapRecorderWin.vue', () => { expect(vm.error).to.equal(false); // Supported codecs under chrome. expect(vm.mimeType).to.equal('video/webm'); - expect(vm.mimeTypes.length).to.equal(2); + expect(vm.mimeTypes.length).to.equal(3); }); afterEach(() => { @@ -65,9 +65,10 @@ describe('maprecorder/MapRecorderWin.vue', () => { it('correct supported mime types under chrome', () => { const mimeTypes = vm.getSupportedMimeTypes(); - expect(mimeTypes.length).to.equal(2); + expect(mimeTypes.length).to.equal(3); expect(mimeTypes[0]).to.equal('video/webm'); - expect(mimeTypes[1]).to.equal('video/x-matroska'); + expect(mimeTypes[1]).to.equal('video/mp4'); + expect(mimeTypes[2]).to.equal('video/x-matroska'); }); it('start / stop recording sets correct states', () => {