Skip to content

Commit ba60468

Browse files
committed
fix: properly ignore function params
1 parent a35cba0 commit ba60468

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/agents-extensions/test/TwilioResample.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ describe('TwilioRealtimeTransportLayer resampling hooks', () => {
5454

5555
test('resampleIncoming is called and its result is passed to sendAudio', async () => {
5656
const resampleIncoming = vi.fn(
57-
async (data: ArrayBuffer, from?: string, to?: string) => {
57+
async (data: ArrayBuffer, _from?: string, _to?: string) => {
5858
// ensure we receive the original data (we won't assert exact bytes here, just that the hook was called)
59-
_ = from;
60-
_ = to;
6159
return data;
6260
},
6361
);
@@ -102,9 +100,7 @@ describe('TwilioRealtimeTransportLayer resampling hooks', () => {
102100

103101
test('resampleOutgoing is called and Twilio receives its result', async () => {
104102
const resampleOutgoing = vi.fn(
105-
async (data: ArrayBuffer, from?: string, to?: string) => {
106-
_ = from;
107-
_ = to;
103+
async (data: ArrayBuffer, _from?: string, _to?: string) => {
108104
return data;
109105
},
110106
);

0 commit comments

Comments
 (0)