Skip to content

Commit 6e1317b

Browse files
Fix spelling of "propagate"
1 parent f6fbe35 commit 6e1317b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/common/lib/client/baserealtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class Channels extends EventEmitter {
171171
/* Connection interruptions (ie when the connection will no longer queue
172172
* events) imply connection state changes for any channel which is either
173173
* attached, pending, or will attempt to become attached in the future */
174-
propogateConnectionInterruption(connectionState: string, reason: ErrorInfo) {
174+
propagateConnectionInterruption(connectionState: string, reason: ErrorInfo) {
175175
const connectionStateToChannelState: Record<string, API.ChannelState> = {
176176
closing: 'detached',
177177
closed: 'detached',

src/common/lib/transport/connectionmanager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ class ConnectionManager extends EventEmitter {
13031303
if (this.state.sendEvents) {
13041304
this.sendQueuedMessages();
13051305
} else if (!this.state.queueEvents) {
1306-
this.realtime.channels.propogateConnectionInterruption(state, change.reason);
1306+
this.realtime.channels.propagateConnectionInterruption(state, change.reason);
13071307
this.failQueuedMessages(change.reason as ErrorInfo); // RTN7c
13081308
}
13091309
}

test/realtime/auth.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
768768
});
769769

770770
/**
771-
* Check state change reason is propogated during a disconnect
771+
* Check state change reason is propagated during a disconnect
772772
* (when connecting with a token that expires while connected)
773773
*
774774
* @spec RSA4b1

test/realtime/channel.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
12581258
realtime.options.timeouts.realtimeRequestTimeout = 100;
12591259
channel.once(function (stateChange) {
12601260
expect(stateChange.current).to.equal('attaching', 'Channel reattach attempt happens immediately');
1261-
expect(stateChange.reason.code).to.equal(50000, 'check error is propogated in the reason');
1261+
expect(stateChange.reason.code).to.equal(50000, 'check error is propagated in the reason');
12621262
cb();
12631263
});
12641264
helper.recordPrivateApi('call.connectionManager.activeProtocol.getTransport');
@@ -1326,7 +1326,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
13261326
};
13271327
Helper.whenPromiseSettles(channel.attach(), function (err) {
13281328
try {
1329-
expect(err.code).to.equal(50000, 'check error is propogated to the attach callback');
1329+
expect(err.code).to.equal(50000, 'check error is propagated to the attach callback');
13301330
expect(channel.state).to.equal('suspended', 'check channel goes into suspended');
13311331
helper.closeAndFinish(done, realtime);
13321332
} catch (err) {
@@ -1356,7 +1356,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
13561356

13571357
channel.on('failed', function (stateChange) {
13581358
try {
1359-
expect(stateChange.reason.code).to.equal(50000, 'check error is propogated');
1359+
expect(stateChange.reason.code).to.equal(50000, 'check error is propagated');
13601360
helper.closeAndFinish(done, realtime);
13611361
} catch (err) {
13621362
helper.closeAndFinish(done, realtime, err);
@@ -1406,7 +1406,7 @@ define(['ably', 'shared_helper', 'async', 'chai'], function (Ably, Helper, async
14061406
expect(stateChange.current).to.equal('attached', 'check current');
14071407
expect(stateChange.previous).to.equal('attached', 'check previous');
14081408
expect(stateChange.resumed).to.equal(false, 'check resumed');
1409-
expect(stateChange.reason.code).to.equal(50000, 'check error propogated');
1409+
expect(stateChange.reason.code).to.equal(50000, 'check error propagated');
14101410
expect(channel.state).to.equal('attached', 'check channel still attached');
14111411
cb();
14121412
});

test/realtime/resume.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ define(['shared_helper', 'async', 'chai'], function (Helper, async, chai) {
448448
function (cb) {
449449
connection.once('failed', function (stateChange) {
450450
try {
451-
expect(stateChange.reason.code).to.equal(40101, 'check correct code propogated');
451+
expect(stateChange.reason.code).to.equal(40101, 'check correct code propagated');
452452
} catch (err) {
453453
cb(err);
454454
return;

0 commit comments

Comments
 (0)