mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
refactor(ckeditor5-math): wrong expect import
This commit is contained in:
parent
da3c7d2541
commit
4fb333f15e
@ -1,8 +1,7 @@
|
|||||||
import Mathematics from '../src/math.js';
|
import Mathematics from '../src/math.js';
|
||||||
import AutoMath from '../src/automath.js';
|
import AutoMath from '../src/automath.js';
|
||||||
import { ClassicEditor, Clipboard, Paragraph, Undo, Typing, _getModelData as getData, _setModelData as setData } from 'ckeditor5';
|
import { ClassicEditor, Clipboard, Paragraph, Undo, Typing, _getModelData as getData, _setModelData as setData } from 'ckeditor5';
|
||||||
import { expect } from 'chai';
|
import { describe, beforeEach, it, afterEach, vi, expect } from "vitest";
|
||||||
import { describe, beforeEach, it, afterEach, vi, VitestUtils } from "vitest";
|
|
||||||
|
|
||||||
describe( 'AutoMath - integration', () => {
|
describe( 'AutoMath - integration', () => {
|
||||||
let editorElement: HTMLDivElement, editor: ClassicEditor;
|
let editorElement: HTMLDivElement, editor: ClassicEditor;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { Math as MathDll, AutoformatMath as AutoformatMathDll } from '../src';
|
import { Math as MathDll, AutoformatMath as AutoformatMathDll } from '../src';
|
||||||
import Math from '../src/math';
|
import Math from '../src/math';
|
||||||
import AutoformatMath from '../src/autoformatmath';
|
import AutoformatMath from '../src/autoformatmath';
|
||||||
import { expect } from 'chai';
|
import { describe, it, expect } from 'vitest';
|
||||||
import { describe, it } from 'vitest';
|
|
||||||
|
|
||||||
describe( 'CKEditor5 Math DLL', () => {
|
describe( 'CKEditor5 Math DLL', () => {
|
||||||
it( 'exports Math', () => {
|
it( 'exports Math', () => {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { ClassicEditor, type EditorConfig } from 'ckeditor5';
|
import { ClassicEditor, type EditorConfig } from 'ckeditor5';
|
||||||
import MathUI from '../src/mathui';
|
import MathUI from '../src/mathui';
|
||||||
import { expect } from 'chai';
|
import { describe, beforeEach, it, afterEach, expect } from "vitest";
|
||||||
import { describe, beforeEach, it, afterEach } from "vitest";
|
|
||||||
|
|
||||||
describe( 'Lazy load', () => {
|
describe( 'Lazy load', () => {
|
||||||
let editorElement: HTMLDivElement;
|
let editorElement: HTMLDivElement;
|
||||||
|
@ -3,8 +3,7 @@ import Mathematics from '../src/math.js';
|
|||||||
import MathEditing from '../src/mathediting.js';
|
import MathEditing from '../src/mathediting.js';
|
||||||
import MathUI from '../src/mathui.js';
|
import MathUI from '../src/mathui.js';
|
||||||
import AutoMath from '../src/automath.js';
|
import AutoMath from '../src/automath.js';
|
||||||
import { expect } from 'chai';
|
import { describe, beforeEach, it, afterEach, expect } from "vitest";
|
||||||
import { describe, beforeEach, it, afterEach } from "vitest";
|
|
||||||
|
|
||||||
describe( 'Math', () => {
|
describe( 'Math', () => {
|
||||||
let editorElement: HTMLDivElement, editor: ClassicEditor;
|
let editorElement: HTMLDivElement, editor: ClassicEditor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user