Skip to content
Closed
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
4 changes: 2 additions & 2 deletions web/packages/shared/libs/tdp/codec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ test('decodes message types', () => {
test('decodes errors', () => {
// First encode an error
const encoder = new TextEncoder();
const message = encoder.encode('An error occured');
const message = encoder.encode('An error occurred');
const bufLen = 1 + 4 + message.length;
const tdpErrorBuffer = new ArrayBuffer(bufLen);
const view = new DataView(tdpErrorBuffer);
Expand All @@ -161,7 +161,7 @@ test('decodes errors', () => {
});

const error = codec.decodeErrorMessage(tdpErrorBuffer);
expect(error).toBe('An error occured');
expect(error).toBe('An error occurred');
});

// Username/password tests inspired by https://github.com/google/closure-library/blob/master/closure/goog/crypt/crypt_test.js (Apache License)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function Player({
);

// statusText is currently only set when an error happens, so for now we can assume
// if it is not empty, an error occured (even if the player is in COMPLETE state, which gets
// if it is not empty, an error occurred (even if the player is in COMPLETE state, which gets
// set on close)
const isError = playerStatus === StatusEnum.ERROR || statusText !== '';
const isLoading = playerStatus === StatusEnum.LOADING;
Expand Down
2 changes: 1 addition & 1 deletion web/packages/teleport/src/lib/util/eventTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import type { FocusEvent } from 'react';

/**
* Checks if a focus event occured outside target element
* Checks if a focus event occurred outside target element
*/
export const focusOutsideTarget = (
event: FocusEvent<Element>,
Expand Down
Loading