Skip to content

Commit

Permalink
test: Mock properly. #1601
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Aug 10, 2023
1 parent eb39fb1 commit 785c3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/audio_annotator.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class MockAudioContext {
createGain = () => ({ gain: {} })
createMediaElementSource = () => this
connect = () => this
decodeAudioData = () => ({ duration: WIDTH_AND_DURATION, getChannelData: () => [1] })
decodeAudioData = () => ({ duration: WIDTH_AND_DURATION, getChannelData: () => new Array(300).fill(1) })
}

describe('AudioAnnotator.tsx', () => {
Expand Down

0 comments on commit 785c3d5

Please sign in to comment.