Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typo): correct typo: recieved => received #527

Merged
merged 1 commit into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class Message {
/**
* The time at which the message was recieved by the subscription.
*
* @name Message#recieved
* @name Message#received
* @type {number}
*/
this.received = Date.now();
Expand Down
6 changes: 3 additions & 3 deletions test/message-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,11 @@ describe('MessageStream', () => {
describe('initialization', () => {
it('should pipe to the message stream', done => {
const fakeResponses = [{}, {}, {}, {}, {}];
const recieved: object[] = [];
const received: object[] = [];

messageStream.on('data', chunk => recieved.push(chunk))
messageStream.on('data', chunk => received.push(chunk))
.on('end', () => {
assert.deepStrictEqual(recieved, fakeResponses);
assert.deepStrictEqual(received, fakeResponses);
done();
});

Expand Down
2 changes: 1 addition & 1 deletion test/subscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ describe('Subscriber', () => {
timestamp.value, RECEIVED_MESSAGE.message.publishTime);
});

it('should localize recieved time', () => {
it('should localize received time', () => {
const now = Date.now();

sandbox.stub(global.Date, 'now').returns(now);
Expand Down