Skip to content

Commit

Permalink
Merge pull request #406 from chrismayer/fix-maprecorder-tests
Browse files Browse the repository at this point in the history
Fix MapRecorderWin unit tests
  • Loading branch information
chrismayer authored Jun 20, 2024
2 parents 9bbdd7b + 6557de0 commit 85e4364
Showing 1 changed file with 4 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,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', () => {
Expand Down

0 comments on commit 85e4364

Please sign in to comment.