mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-01 23:21:59 +01:00
remove .js from imports
This commit is contained in:
parent
56757e4bb0
commit
fac706fb4f
@ -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(
|
||||
|
@ -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" }));
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user