Send Accept-Language when connecting a chat socket

This commit is contained in:
Jordan Rose
2025-06-25 13:16:37 -07:00
committed by GitHub
parent 8e4835bf8e
commit 8070d6a4e6
22 changed files with 224 additions and 105 deletions

View File

@@ -317,7 +317,9 @@ describe('chat service api', () => {
onConnectionInterrupted: (...args: [unknown]) =>
onInterrupted.resolve(args),
};
const chat = await net.connectUnauthenticatedChat(listener);
const chat = await net.connectUnauthenticatedChat(listener, {
languages: ['en'],
});
await chat.disconnect();
await onInterrupted;
expect(onInterrupted.resolvedValue).to.eql([null]);