Skip to content

Commit 23edebb

Browse files
committed
test: dedupe audio transcode mock read
1 parent f57c500 commit 23edebb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/media/audio-transcode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { transcodeAudioBufferToOpus } from "./audio-transcode.js";
1515
type MockWithCalls = { mock: { calls: unknown[][] } };
1616

1717
function firstMockCall(mock: MockWithCalls, label: string): unknown[] {
18-
const call = mock.mock.calls.at(0);
18+
const call = mock.mock.calls[0];
1919
if (!call) {
2020
throw new Error(`expected ${label} call`);
2121
}

0 commit comments

Comments
 (0)