    )
                  })
                );
              }
            });

            return () => subscription.unsubscribe();
          }),

          connectionStatus$: directLine.connectionStatus$,
          postActivity: directLine.postActivity.bind(directLine),
          token: directLine.token
        };

        const store = testHelpers.createStore();

        WebChat.renderWebChat(
          {
            directLine: patchedDirectLine,
            store,
            styleOptions: {
           