Skip to content

Commit 1d546fe

Browse files
authored
Fix Typos In Comments (#7135)
1 parent ce88ca4 commit 1d546fe

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/core/test/overflow-list/overflowListTests.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe("<OverflowList>", function (this) {
138138
it("invoked once per resize", async () => {
139139
// initial render shows all items (empty overflow)
140140
await overflowList(200).waitForResize();
141-
// assert that at given width, onOverflow receives given Ds
141+
// assert that at given width, onOverflow receives given IDs
142142
const tests = [
143143
{ width: 15, overflowIds: [0, 1, 2, 3, 4] },
144144
{ width: 55, overflowIds: [0] },
@@ -216,7 +216,7 @@ describe("<OverflowList>", function (this) {
216216
return wrapper;
217217
};
218218

219-
/** Asserts that the last call to `onOverflow` received the given item Ds. */
219+
/** Asserts that the last call to `onOverflow` received the given item IDs. */
220220
wrapper.assertLastOnOverflowArgs = (ids: number[]) => {
221221
assert.sameMembers(
222222
onOverflowSpy.lastCall.args[0].map((i: TestItemProps) => i.id),
@@ -227,7 +227,7 @@ describe("<OverflowList>", function (this) {
227227

228228
/**
229229
* Invokes both assertions below with the expected visible and
230-
* overflow Dsassuming `collapseFrom="start"`.
230+
* overflow IDs assuming `collapseFrom="start"`.
231231
*/
232232
wrapper.assertVisibleItemSplit = (visibleCount: number) => {
233233
const ids = (props.items ?? ITEMS).map(it => it.id);
@@ -236,7 +236,7 @@ describe("<OverflowList>", function (this) {
236236
.assertVisibleItems(...ids.slice(-visibleCount));
237237
};
238238

239-
/** Assert ordered Dsof overflow items. */
239+
/** Assert ordered IDs of overflow items. */
240240
wrapper.assertOverflowItems = (...ids: number[]) => {
241241
const overflowItems = wrapper.find(TestOverflow).prop("items");
242242
assert.sameMembers(
@@ -247,7 +247,7 @@ describe("<OverflowList>", function (this) {
247247
return wrapper;
248248
};
249249

250-
/** Assert ordered Dsof visible items. */
250+
/** Assert ordered IDs of visible items. */
251251
wrapper.assertVisibleItems = (...ids: number[]) => {
252252
const visibleItems = wrapper.find(TestItem).map(div => div.prop("id"));
253253
assert.sameMembers(visibleItems, ids, "visible items");

packages/core/test/tabs/tabsTests.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { generateTabIds } from "../../src/components/tabs/tabTitle";
2525

2626
describe("<Tabs>", () => {
2727
const ID = "tabsTests";
28-
// default tabs content is generated from these Dsin each test
28+
// default tabs content is generated from these IDs in each test
2929
const TAB_IDS = ["first", "second", "third"];
3030

3131
// selectors using ARIA role

packages/select/test/listItemsPropsTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe("ListItemsProps Utils", () => {
107107
});
108108

109109
describe("itemsEqual is a function", () => {
110-
// Simple equality comparator that compares Dsof ItemObjects.
110+
// Simple equality comparator that compares IDs of ItemObjects.
111111
const equalityComparator = sinon.spy((itemA: ItemObject, itemB: ItemObject): boolean => {
112112
return itemA.id === itemB.id;
113113
});

packages/table/src/column.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface ColumnProps extends ColumnNameProps, Props {
2727
/**
2828
* A unique ID, similar to React's `key`. This is used, for example, to
2929
* maintain the width of a column between re-ordering and rendering. If no
30-
* Dsare provided, widths will be persisted across renders using a
30+
* IDs are provided, widths will be persisted across renders using a
3131
* column's index only. Columns widths can also be persisted outside the
3232
* `Table` component, then passed in with the `columnWidths` prop.
3333
*/

0 commit comments

Comments
 (0)