From 4fb333f15e67d9207efd228a4714b0d64dfa9d2e Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 10 May 2025 00:01:38 +0300 Subject: [PATCH] refactor(ckeditor5-math): wrong expect import --- packages/ckeditor5-math/tests/automath.ts | 3 +-- packages/ckeditor5-math/tests/index.ts | 3 +-- packages/ckeditor5-math/tests/lazyload.ts | 3 +-- packages/ckeditor5-math/tests/math.ts | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/ckeditor5-math/tests/automath.ts b/packages/ckeditor5-math/tests/automath.ts index c4252bbf1..ff9675c99 100644 --- a/packages/ckeditor5-math/tests/automath.ts +++ b/packages/ckeditor5-math/tests/automath.ts @@ -1,8 +1,7 @@ import Mathematics from '../src/math.js'; import AutoMath from '../src/automath.js'; import { ClassicEditor, Clipboard, Paragraph, Undo, Typing, _getModelData as getData, _setModelData as setData } from 'ckeditor5'; -import { expect } from 'chai'; -import { describe, beforeEach, it, afterEach, vi, VitestUtils } from "vitest"; +import { describe, beforeEach, it, afterEach, vi, expect } from "vitest"; describe( 'AutoMath - integration', () => { let editorElement: HTMLDivElement, editor: ClassicEditor; diff --git a/packages/ckeditor5-math/tests/index.ts b/packages/ckeditor5-math/tests/index.ts index 87a086ac0..4493420e1 100644 --- a/packages/ckeditor5-math/tests/index.ts +++ b/packages/ckeditor5-math/tests/index.ts @@ -1,8 +1,7 @@ import { Math as MathDll, AutoformatMath as AutoformatMathDll } from '../src'; import Math from '../src/math'; import AutoformatMath from '../src/autoformatmath'; -import { expect } from 'chai'; -import { describe, it } from 'vitest'; +import { describe, it, expect } from 'vitest'; describe( 'CKEditor5 Math DLL', () => { it( 'exports Math', () => { diff --git a/packages/ckeditor5-math/tests/lazyload.ts b/packages/ckeditor5-math/tests/lazyload.ts index 35ab1f3e8..126507850 100644 --- a/packages/ckeditor5-math/tests/lazyload.ts +++ b/packages/ckeditor5-math/tests/lazyload.ts @@ -1,7 +1,6 @@ import { ClassicEditor, type EditorConfig } from 'ckeditor5'; import MathUI from '../src/mathui'; -import { expect } from 'chai'; -import { describe, beforeEach, it, afterEach } from "vitest"; +import { describe, beforeEach, it, afterEach, expect } from "vitest"; describe( 'Lazy load', () => { let editorElement: HTMLDivElement; diff --git a/packages/ckeditor5-math/tests/math.ts b/packages/ckeditor5-math/tests/math.ts index ecdc85b20..48d0ca64d 100644 --- a/packages/ckeditor5-math/tests/math.ts +++ b/packages/ckeditor5-math/tests/math.ts @@ -3,8 +3,7 @@ import Mathematics from '../src/math.js'; import MathEditing from '../src/mathediting.js'; import MathUI from '../src/mathui.js'; import AutoMath from '../src/automath.js'; -import { expect } from 'chai'; -import { describe, beforeEach, it, afterEach } from "vitest"; +import { describe, beforeEach, it, afterEach, expect } from "vitest"; describe( 'Math', () => { let editorElement: HTMLDivElement, editor: ClassicEditor;