remove .js from imports

This commit is contained in:
Evan Simkowitz 2024-08-26 16:37:05 -07:00
parent 56757e4bb0
commit fac706fb4f
No known key found for this signature in database
3 changed files with 8 additions and 14 deletions

View File

@ -2,14 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import { assert, test } from "vitest";
import {
addChildAt,
addIntermediateNode,
balanceNode,
findNextInsertLocation,
newLayoutNode,
} from "../lib/layoutNode.js";
import { FlexDirection, LayoutNode } from "../lib/types.js";
import { addChildAt, addIntermediateNode, balanceNode, findNextInsertLocation, newLayoutNode } from "../lib/layoutNode";
import { FlexDirection, LayoutNode } from "../lib/types";
test("newLayoutNode", () => {
assert.throws(

View File

@ -2,15 +2,15 @@
// SPDX-License-Identifier: Apache-2.0
import { assert, test } from "vitest";
import { newLayoutNode } from "../lib/layoutNode.js";
import { computeMoveNode, moveNode } from "../lib/layoutTree.js";
import { newLayoutNode } from "../lib/layoutNode";
import { computeMoveNode, moveNode } from "../lib/layoutTree";
import {
DropDirection,
LayoutTreeActionType,
LayoutTreeComputeMoveNodeAction,
LayoutTreeMoveNodeAction,
} from "../lib/types.js";
import { newLayoutTreeState } from "./model.js";
} from "../lib/types";
import { newLayoutTreeState } from "./model";
test("layoutTreeStateReducer - compute move", () => {
let treeState = newLayoutTreeState(newLayoutNode(undefined, undefined, undefined, { blockId: "root" }));

View File

@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0
import { assert, test } from "vitest";
import { DropDirection, FlexDirection } from "../lib/types.js";
import { determineDropDirection, reverseFlexDirection } from "../lib/utils.js";
import { DropDirection, FlexDirection } from "../lib/types";
import { determineDropDirection, reverseFlexDirection } from "../lib/utils";
test("determineDropDirection", () => {
const dimensions: Dimensions = {