Skip to content

Commit

Permalink
docs: add callback keyword in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Dec 17, 2024
1 parent a39bf01 commit f87b8d8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/tests/lib/components/Back.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("Back", () => {
it("should forward the click event", () =>
new Promise<void>((done) => {
const { getByTestId } = render(Back, {
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/lib/components/Card.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe("Card", () => {
it("should forward the click event", () =>
new Promise<void>((done) => {
const { container } = render(Card, {
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down
8 changes: 4 additions & 4 deletions src/tests/lib/components/Checkbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Checkbox", () => {
new Promise<void>((done) => {
const { container } = render(Checkbox, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand All @@ -83,7 +83,7 @@ describe("Checkbox", () => {
new Promise<void>((done) => {
const { container } = render(Checkbox, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down Expand Up @@ -123,7 +123,7 @@ describe("Checkbox", () => {
...props,
disabled: true,
},
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand All @@ -143,7 +143,7 @@ describe("Checkbox", () => {
...props,
disabled: true,
},
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down
4 changes: 2 additions & 2 deletions src/tests/lib/components/Collapsible.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ describe("Collapsible", () => {

const { getByTestId, container } = render(CollapsibleTest, {
...props({ externalToggle: true }),
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down Expand Up @@ -144,7 +144,7 @@ describe("Collapsible", () => {
};

const { getByTestId } = render(CollapsibleTest, {
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down
10 changes: 5 additions & 5 deletions src/tests/lib/components/Modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe("Modal", () => {
new Promise<void>((done) => {
const { container } = render(Modal, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand All @@ -128,7 +128,7 @@ describe("Modal", () => {
new Promise<void>((done) => {
const { container } = render(Modal, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand All @@ -142,7 +142,7 @@ describe("Modal", () => {
it("should not close modal on not Esc keypress", () => {
const { container } = render(Modal, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand All @@ -159,7 +159,7 @@ describe("Modal", () => {
it("should not close modal on Esc when busy = true", () => {
const { container } = render(Modal, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down Expand Up @@ -205,7 +205,7 @@ describe("Modal", () => {
new Promise<void>((done) => {
const { getByTestId } = render(ModalTest, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/lib/components/Toggle.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe("Toggle", () => {

const { container } = render(Toggle, {
props,
// TODO: remove once events is migrated to props
// TODO: remove once events are migrated to callback props
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
events: {
Expand Down

0 comments on commit f87b8d8

Please sign in to comment.