Skip to content

Commit ef20132

Browse files
committed
chore(typos): fix additional typos throughout repo
1 parent 453023b commit ef20132

File tree

48 files changed

+67
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+67
-69
lines changed

packages/alert/src/__tests__/useMessageQueue.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe("handleAddMessage", () => {
179179

180180
it("should add the new message to the end of the queue if there are no existing messages with the same id", () => {
181181
const replacement: Message = {
182-
messageId: "mesage-3",
182+
messageId: "message-3",
183183
messagePriority: "replace",
184184
};
185185

@@ -315,7 +315,7 @@ describe("handleAddMessage", () => {
315315
});
316316
});
317317

318-
describe("immediate pirority", () => {
318+
describe("immediate priority", () => {
319319
const message1: Message = { messageId: "message-1" };
320320
const message2: Message = { messageId: "message-2" };
321321
const message3: Message = { messageId: "message-3" };
@@ -355,7 +355,7 @@ describe("reducer", () => {
355355
const message2: Message = { messageId: "message-2" };
356356
const message3: ToastMessage = { children: "Hello, world!" };
357357

358-
it("should add a new messaage with the correct behavior for the ADD_MESSAGE action", () => {
358+
it("should add a new message with the correct behavior for the ADD_MESSAGE action", () => {
359359
const action: AddMessageAction = {
360360
type: ADD_MESSAGE,
361361
message: message3,

packages/autocomplete/src/__tests__/HighlightedResult.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe("HighlightedResult", () => {
9494
expect(container).toMatchSnapshot();
9595

9696
// one for the TextNode of unmatched prefix, one <span> for the highlighted
97-
// text, and the reamining TextNode for the unmatched suffix
97+
// text, and the remaining TextNode for the unmatched suffix
9898
expect(container.childNodes.length).toBe(3);
9999
});
100100

packages/avatar/src/__tests__/Avatar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe("Avatar", () => {
99
expect(container.querySelector("span")).not.toBeNull();
1010
});
1111

12-
it("should apply the rmd-avarar class name", () => {
12+
it("should apply the rmd-avatar class name", () => {
1313
const { container } = render(<Avatar />);
1414
const avatar = container.querySelector("span") as HTMLSpanElement;
1515
expect(avatar.className).toBe("rmd-avatar");

packages/badge/src/__tests__/isEmpty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isEmpty } from "../isEmpty";
22

33
describe("isEmpty", () => {
4-
it('should return true whent he disableNullOnZero is false and the children is 0, "0", or null', () => {
4+
it('should return true when the disableNullOnZero is false and the children is 0, "0", or null', () => {
55
expect(isEmpty(0, false)).toBe(true);
66
expect(isEmpty("0", false)).toBe(true);
77
expect(isEmpty(null, false)).toBe(true);

packages/button/src/__tests__/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function flattenDeep(
4040
}
4141

4242
describe("Button", () => {
43-
// this is actually really bad practice and kind of worthess
43+
// this is actually really bad practice and kind of worthless
4444
it("should render correctly based on the theme props", () => {
4545
flattenDeep(
4646
buttonTypes.map((buttonType) =>

packages/dialog/src/__tests__/useNestedDialogFixes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe("useNestedDialogFixes", () => {
8585

8686
it("should warn in a non-prod environment if trying to add multiple dialogs with the same id", () => {
8787
const { NODE_ENV } = process.env;
88-
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
88+
// this is caused by next defining process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
8989
// @ts-expect-error
9090
process.env.NODE_ENV = "production";
9191
const warn = jest.spyOn(console, "warn");
@@ -115,7 +115,7 @@ describe("useNestedDialogFixes", () => {
115115
unmount();
116116
expect(warn).not.toBeCalled();
117117

118-
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
118+
// this is caused by next defining process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
119119
// @ts-expect-error
120120
process.env.NODE_ENV = NODE_ENV;
121121
render(<Test />);

packages/form/src/menu/__tests__/MenuItemTextField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe("MenuItemTextField", () => {
9595
expect(menu).not.toBeInTheDocument();
9696
});
9797

98-
it("should not cause the menu to close when the text fiedl or li is clicked", () => {
98+
it("should not cause the menu to close when the text field or li is clicked", () => {
9999
const { getByRole, getByTestId } = render(<Test />);
100100
fireEvent.click(getByRole("button", { name: "Dropdown" }));
101101

packages/form/src/select/__tests__/Listbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe("Listbox", () => {
275275

276276
it("should throw a warning in a non-production NODE_ENV if there is a non-searchable value", () => {
277277
const { NODE_ENV } = process.env;
278-
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
278+
// this is caused by next defining process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
279279
// @ts-expect-error
280280
process.env.NODE_ENV = "production";
281281
const warn = jest.spyOn(console, "warn");
@@ -288,7 +288,7 @@ describe("Listbox", () => {
288288
unmount();
289289
expect(warn).not.toBeCalled();
290290

291-
// this is caused by next definigin process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
291+
// this is caused by next defining process.env.NODE_ENV as readonly 'development' | 'production' | 'test'
292292
// @ts-expect-error
293293
process.env.NODE_ENV = NODE_ENV;
294294
render(<Listbox {...props} />);

packages/form/src/slider/__tests__/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ describe("Slider", () => {
376376
);
377377
}
378378

379-
it("should show the toolwip when the thumb gains focus while the user interaction mode is keyboard", async () => {
379+
it("should show the tooltip when the thumb gains focus while the user interaction mode is keyboard", async () => {
380380
const { getByRole, container } = render(<DiscreteTest />);
381381
expect(container).toMatchSnapshot();
382382
expect(() => getByRole("tooltip")).toThrow();

packages/form/src/slider/__tests__/__snapshots__/Slider.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Slider discrete sliders should show the toolwip when the thumb gains focus while the user interaction mode is keyboard 1`] = `
3+
exports[`Slider discrete sliders should show the tooltip when the thumb gains focus while the user interaction mode is keyboard 1`] = `
44
<div>
55
<span
66
class="rmd-label"
@@ -36,7 +36,7 @@ exports[`Slider discrete sliders should show the toolwip when the thumb gains fo
3636
</div>
3737
`;
3838

39-
exports[`Slider discrete sliders should show the toolwip when the thumb gains focus while the user interaction mode is keyboard 2`] = `
39+
exports[`Slider discrete sliders should show the tooltip when the thumb gains focus while the user interaction mode is keyboard 2`] = `
4040
<div>
4141
<span
4242
class="rmd-label"
@@ -79,7 +79,7 @@ exports[`Slider discrete sliders should show the toolwip when the thumb gains fo
7979
</div>
8080
`;
8181

82-
exports[`Slider discrete sliders should show the toolwip when the thumb gains focus while the user interaction mode is keyboard 3`] = `
82+
exports[`Slider discrete sliders should show the tooltip when the thumb gains focus while the user interaction mode is keyboard 3`] = `
8383
<div>
8484
<span
8585
class="rmd-label"

0 commit comments

Comments
 (0)