Skip to content

Commit

Permalink
Fix MapRecorder unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismayer committed Jun 20, 2024
1 parent 9bbdd7b commit 45ba6c7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -65,9 +65,11 @@ describe('maprecorder/MapRecorderWin.vue', () => {

it('correct supported mime types under chrome', () => {
const mimeTypes = vm.getSupportedMimeTypes();
expect(mimeTypes.length).to.equal(2);
console.log('MIM', mimeTypes);
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', () => {
Expand Down

0 comments on commit 45ba6c7

Please sign in to comment.