@@ -31,7 +31,7 @@ describe("WebSocketConfigImpl", () => {
3131 ) ;
3232 } ) ;
3333
34- it ( "creates websocket header with token when supported" , ( ) => {
34+ it ( "creates websocket protocol with token when supported" , ( ) => {
3535 const config = new WebSocketConfigImpl (
3636 {
3737 streamingApiUrl : "wss://mastodon.social" ,
@@ -40,10 +40,10 @@ describe("WebSocketConfigImpl", () => {
4040 new SerializerNativeImpl ( ) ,
4141 ) ;
4242
43- expect ( config . getHeaders ( ) ) . toEqual ( { Authorization : "Bearer token" } ) ;
43+ expect ( config . getProtocols ( ) ) . toEqual ( [ " token"] ) ;
4444 } ) ;
4545
46- it ( "creates websocket header without token when not supported" , ( ) => {
46+ it ( "creates websocket protocol without token when not supported" , ( ) => {
4747 const config = new WebSocketConfigImpl (
4848 {
4949 streamingApiUrl : "wss://mastodon.social" ,
@@ -53,7 +53,7 @@ describe("WebSocketConfigImpl", () => {
5353 new SerializerNativeImpl ( ) ,
5454 ) ;
5555
56- expect ( config . getHeaders ( ) ) . toEqual ( { } ) ;
56+ expect ( config . getProtocols ( ) ) . toEqual ( [ ] ) ;
5757 } ) ;
5858
5959 it ( "gets max attempts with retry true" , ( ) => {
0 commit comments