From 2d7329d9bd6b426cc36aba68068a6a8a3042e50c Mon Sep 17 00:00:00 2001 From: netil Date: Thu, 22 Aug 2024 14:45:17 +0900 Subject: [PATCH] style(all): remove unused imports - remove unused imports - import afterAll Ref #3866 --- test/api/flow-spec.ts | 2 +- test/api/selection-spec.ts | 2 +- test/interactions/drag-spec.ts | 2 +- test/interactions/zoom-spec.ts | 2 +- test/internals/boost-spec.ts | 2 +- test/internals/class-spec.ts | Bin 2192 -> 2202 bytes test/internals/legend-spec.ts | 2 +- test/internals/padding-spec.ts | 1 - test/internals/regions-spec.ts | 2 +- test/internals/selection-spec.ts | 2 +- 10 files changed, 8 insertions(+), 9 deletions(-) diff --git a/test/api/flow-spec.ts b/test/api/flow-spec.ts index 0f6fcfb72..a3955c0d4 100644 --- a/test/api/flow-spec.ts +++ b/test/api/flow-spec.ts @@ -3,7 +3,7 @@ * billboard.js project is licensed under the MIT license */ /* eslint-disable */ -import {beforeEach, beforeAll, describe, expect, it} from "vitest"; +import {beforeEach, beforeAll, afterEach, describe, expect, it} from "vitest"; import sinon from "sinon"; import util from "../assets/util"; import {$AXIS, $GRID, $LINE, $TEXT} from "../../src/config/classes"; diff --git a/test/api/selection-spec.ts b/test/api/selection-spec.ts index d250312e4..1ce023957 100644 --- a/test/api/selection-spec.ts +++ b/test/api/selection-spec.ts @@ -3,7 +3,7 @@ * billboard.js project is licensed under the MIT license */ /* eslint-disable */ -import {beforeEach, beforeAll, afterAll, describe, expect, it} from "vitest"; +import {beforeAll, describe, expect, it} from "vitest"; import util from "../assets/util"; import {$BAR, $SELECT, $SHAPE} from "../../src/config/classes"; diff --git a/test/interactions/drag-spec.ts b/test/interactions/drag-spec.ts index 12a3cbb6e..9157493cb 100644 --- a/test/interactions/drag-spec.ts +++ b/test/interactions/drag-spec.ts @@ -4,7 +4,7 @@ */ /* eslint-disable */ /* global describe, beforeEach, it, expect */ -import {beforeEach, beforeAll, describe, expect, it} from "vitest"; +import {beforeEach, beforeAll, afterEach, describe, expect, it} from "vitest"; import {$DRAG, $SELECT} from "../../src/config/classes"; import util from "../assets/util"; diff --git a/test/interactions/zoom-spec.ts b/test/interactions/zoom-spec.ts index 6e1538d70..c6c1f6b65 100644 --- a/test/interactions/zoom-spec.ts +++ b/test/interactions/zoom-spec.ts @@ -4,7 +4,7 @@ */ /* eslint-disable */ /* global describe, beforeEach, it, expect */ -import {beforeEach, beforeAll, afterAll, describe, expect, it} from "vitest"; +import {beforeEach, beforeAll, describe, expect, it} from "vitest"; import {zoomTransform as d3ZoomTransform} from "d3-zoom"; import sinon from "sinon"; import {$AXIS, $EVENT, $GRID, $REGION, $ZOOM} from "../../src/config/classes"; diff --git a/test/internals/boost-spec.ts b/test/internals/boost-spec.ts index 9f071bf8d..2b28026be 100644 --- a/test/internals/boost-spec.ts +++ b/test/internals/boost-spec.ts @@ -4,7 +4,7 @@ */ /* eslint-disable */ /* global describe, beforeEach, it, expect */ -import {beforeEach, beforeAll, afterAll, describe, expect, it} from "vitest"; +import {beforeEach, describe, expect, it} from "vitest"; import util from "../assets/util"; import {runWorker} from "../../src/module/worker"; diff --git a/test/internals/class-spec.ts b/test/internals/class-spec.ts index 3350bbe8273409267e218d06bcb3cac10e65fea9..a35a9ba534fa78a05e8e9d9d51c7fd1337766323 100644 GIT binary patch delta 19 bcmbOrI7@KCG>(+i;^d;tq|}X5{;&f8N`43g delta 10 ScmbOwI6-j2w2cdXu>$}Yiv-00 diff --git a/test/internals/legend-spec.ts b/test/internals/legend-spec.ts index 8417183b0..0f5aa1023 100644 --- a/test/internals/legend-spec.ts +++ b/test/internals/legend-spec.ts @@ -4,8 +4,8 @@ */ /* eslint-disable */ /* global describe, beforeEach, it, expect */ -import sinon from "sinon"; import {beforeEach, beforeAll, afterAll, describe, expect, it} from "vitest"; +import sinon from "sinon"; import {select as d3Select} from "d3-selection"; import util from "../assets/util"; import {$FOCUS, $LEGEND} from "../../src/config/classes"; diff --git a/test/internals/padding-spec.ts b/test/internals/padding-spec.ts index d5099a962..8ce7c18af 100644 --- a/test/internals/padding-spec.ts +++ b/test/internals/padding-spec.ts @@ -4,7 +4,6 @@ */ /* eslint-disable */ import {beforeEach, beforeAll, describe, expect, it} from "vitest"; -import sinon from "sinon"; import util from "../assets/util"; import {$AXIS} from "../../src/config/classes"; diff --git a/test/internals/regions-spec.ts b/test/internals/regions-spec.ts index 3580ce03a..b28b4b3ac 100644 --- a/test/internals/regions-spec.ts +++ b/test/internals/regions-spec.ts @@ -3,7 +3,7 @@ * billboard.js project is licensed under the MIT license */ /* eslint-disable */ -import {beforeEach, beforeAll, describe, expect, it} from "vitest"; +import {beforeEach, beforeAll, afterEach, describe, expect, it} from "vitest"; import {window} from "../../src/module/browser"; import util from "../assets/util"; diff --git a/test/internals/selection-spec.ts b/test/internals/selection-spec.ts index e93c6d1f7..745865975 100644 --- a/test/internals/selection-spec.ts +++ b/test/internals/selection-spec.ts @@ -4,8 +4,8 @@ */ /* eslint-disable */ /* global describe, beforeEach, it, expect */ -import sinon from "sinon"; import {beforeEach, beforeAll, describe, expect, it} from "vitest"; +import sinon from "sinon"; import { select as d3Select, selectAll as d3SelectAll