@@ -170,7 +170,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
170170 * @spec RTS3c
171171 * @spec RTL16
172172 */
173- Helper . testOnAllTransports ( 'channelinit0' , function ( realtimeOpts ) {
173+ Helper . testOnAllTransports ( this , 'channelinit0' , function ( realtimeOpts ) {
174174 return function ( done ) {
175175 const helper = this . test . helper ;
176176 try {
@@ -207,7 +207,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
207207 *
208208 * @spec RTL4
209209 */
210- Helper . testOnAllTransports ( 'channelattach0' , function ( realtimeOpts ) {
210+ Helper . testOnAllTransports ( this , 'channelattach0' , function ( realtimeOpts ) {
211211 return function ( done ) {
212212 const helper = this . test . helper ;
213213 try {
@@ -234,7 +234,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
234234 *
235235 * @spec RTL4
236236 */
237- Helper . testOnAllTransports ( 'channelattach2' , function ( realtimeOpts ) {
237+ Helper . testOnAllTransports ( this , 'channelattach2' , function ( realtimeOpts ) {
238238 return function ( done ) {
239239 const helper = this . test . helper ;
240240 try {
@@ -262,6 +262,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
262262 * @spec RTL5
263263 */
264264 Helper . testOnAllTransports (
265+ this ,
265266 'channelattach3' ,
266267 function ( realtimeOpts ) {
267268 return function ( done ) {
@@ -301,7 +302,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
301302 *
302303 * @spec RTL4d
303304 */
304- Helper . testOnAllTransports ( 'channelattachempty' , function ( realtimeOpts ) {
305+ Helper . testOnAllTransports ( this , 'channelattachempty' , function ( realtimeOpts ) {
305306 return function ( done ) {
306307 const helper = this . test . helper ;
307308 try {
@@ -336,7 +337,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
336337 *
337338 * @spec RTL4d
338339 */
339- Helper . testOnAllTransports ( 'channelattachinvalid' , function ( realtimeOpts ) {
340+ Helper . testOnAllTransports ( this , 'channelattachinvalid' , function ( realtimeOpts ) {
340341 return function ( done ) {
341342 const helper = this . test . helper ;
342343 try {
@@ -377,7 +378,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
377378 *
378379 * @spec RTL6
379380 */
380- Helper . testOnAllTransports ( 'publish_no_attach' , function ( realtimeOpts ) {
381+ Helper . testOnAllTransports ( this , 'publish_no_attach' , function ( realtimeOpts ) {
381382 return function ( done ) {
382383 const helper = this . test . helper ;
383384 try {
@@ -407,7 +408,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
407408 *
408409 * @specpartial RTL6b - callback which is called with an error
409410 */
410- Helper . testOnAllTransports ( 'channelattach_publish_invalid' , function ( realtimeOpts ) {
411+ Helper . testOnAllTransports ( this , 'channelattach_publish_invalid' , function ( realtimeOpts ) {
411412 return function ( done ) {
412413 const helper = this . test . helper ;
413414 try {
@@ -441,7 +442,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
441442 *
442443 * @nospec
443444 */
444- Helper . testOnAllTransports ( 'channelattach_invalid_twice' , function ( realtimeOpts ) {
445+ Helper . testOnAllTransports ( this , 'channelattach_invalid_twice' , function ( realtimeOpts ) {
445446 return function ( done ) {
446447 const helper = this . test . helper ;
447448 try {
@@ -536,7 +537,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
536537 * @spec RTL4k1
537538 * @spec RTL4m
538539 */
539- Helper . testOnAllTransports ( 'attachWithChannelParamsBasicChannelsGet' , function ( realtimeOpts ) {
540+ Helper . testOnAllTransports ( this , 'attachWithChannelParamsBasicChannelsGet' , function ( realtimeOpts ) {
540541 return function ( done ) {
541542 const helper = this . test . helper ;
542543 var testName = 'attachWithChannelParamsBasicChannelsGet' ;
@@ -598,7 +599,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
598599 * @spec RTL4m
599600 * @spec RTL16
600601 */
601- Helper . testOnAllTransports ( 'attachWithChannelParamsBasicSetOptions' , function ( realtimeOpts ) {
602+ Helper . testOnAllTransports ( this , 'attachWithChannelParamsBasicSetOptions' , function ( realtimeOpts ) {
602603 return function ( done ) {
603604 const helper = this . test . helper ;
604605 var testName = 'attachWithChannelParamsBasicSetOptions' ;
@@ -652,7 +653,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
652653 * @spec RTL16
653654 * @spec RTL7c
654655 */
655- Helper . testOnAllTransports ( 'subscribeAfterSetOptions' , function ( realtimeOpts ) {
656+ Helper . testOnAllTransports ( this , 'subscribeAfterSetOptions' , function ( realtimeOpts ) {
656657 return function ( done ) {
657658 const helper = this . test . helper ;
658659 var testName = 'subscribeAfterSetOptions' ;
@@ -728,7 +729,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
728729 } ) ;
729730
730731 /** @spec RTL16a */
731- Helper . testOnAllTransports ( 'setOptionsCallbackBehaviour' , function ( realtimeOpts ) {
732+ Helper . testOnAllTransports ( this , 'setOptionsCallbackBehaviour' , function ( realtimeOpts ) {
732733 return function ( done ) {
733734 const helper = this . test . helper ;
734735 var testName = 'setOptionsCallbackBehaviour' ;
@@ -807,7 +808,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
807808 * Verify modes is ignored when params.modes is present
808809 * @nospec
809810 */
810- Helper . testOnAllTransports ( 'attachWithChannelParamsModesAndChannelModes' , function ( realtimeOpts ) {
811+ Helper . testOnAllTransports ( this , 'attachWithChannelParamsModesAndChannelModes' , function ( realtimeOpts ) {
811812 return function ( done ) {
812813 const helper = this . test . helper ;
813814 var testName = 'attachWithChannelParamsModesAndChannelModes' ;
@@ -869,7 +870,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
869870 * @spec RTL4l
870871 * @spec RTL4m
871872 */
872- Helper . testOnAllTransports ( 'attachWithChannelModes' , function ( realtimeOpts ) {
873+ Helper . testOnAllTransports ( this , 'attachWithChannelModes' , function ( realtimeOpts ) {
873874 return function ( done ) {
874875 const helper = this . test . helper ;
875876 var testName = 'attachWithChannelModes' ;
@@ -928,7 +929,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
928929 * @spec RTL4l
929930 * @spec RTL4m
930931 */
931- Helper . testOnAllTransports ( 'attachWithChannelParamsDeltaAndModes' , function ( realtimeOpts ) {
932+ Helper . testOnAllTransports ( this , 'attachWithChannelParamsDeltaAndModes' , function ( realtimeOpts ) {
932933 return function ( done ) {
933934 const helper = this . test . helper ;
934935 var testName = 'attachWithChannelParamsDeltaAndModes' ;
0 commit comments