Skip to content

Commit

Permalink
refactor and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres-CT98 committed Aug 1, 2023
1 parent cf21a58 commit eaea5fe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export default class TableEditor {
this.onSelect,
this.getOnMouseOut,
this.onShowHelperElement,
this.anchorContainer,
this.contentDiv
this.contentDiv,
this.anchorContainer
);
}

Expand All @@ -228,8 +228,8 @@ export default class TableEditor {
this.onStartTableResize,
this.onFinishEditing,
this.onShowHelperElement,
this.anchorContainer,
this.contentDiv
this.contentDiv,
this.anchorContainer
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export default function createTableResizer(
elementData: CreateElementData,
helperType: 'CellResizer' | 'TableInserter' | 'TableResizer' | 'TableSelector'
) => void,
anchorContainer?: HTMLElement,
contentDiv?: EventTarget | null
contentDiv?: EventTarget | null,
anchorContainer?: HTMLElement
): TableEditFeature | null {
const rect = normalizeRect(table.getBoundingClientRect());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default function createTableSelector(
elementData: CreateElementData,
helperType: 'CellResizer' | 'TableInserter' | 'TableResizer' | 'TableSelector'
) => void,
anchorContainer?: HTMLElement,
contentDiv?: EventTarget | null
contentDiv?: EventTarget | null,
anchorContainer?: HTMLElement
): TableEditorFeature | null {
const rect = normalizeRect(table.getBoundingClientRect());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ describe('Table Selector Tests', () => {
//Act
const result = createTableSelector(
target as HTMLTableElement,
1,
editor,
() => {},
() => () => {},
Expand Down

0 comments on commit eaea5fe

Please sign in to comment.