35 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

import { Mermaid as MermaidDll, icons } from '../src/index.js';
import Mermaid from '../src/mermaid.js';
2022-03-04 13:39:39 +01:00
import infoIcon from './../theme/icons/info.svg';
import insertMermaidIcon from './../theme/icons/insert.svg';
2022-03-08 11:07:02 +01:00
import previewModeIcon from './../theme/icons/preview-mode.svg';
import splitModeIcon from './../theme/icons/split-mode.svg';
import sourceModeIcon from './../theme/icons/source-mode.svg';
2025-05-10 02:23:22 +03:00
import { describe, it } from 'vitest';
import { expect } from 'vitest';
2022-03-04 13:39:39 +01:00
describe( 'CKEditor5 Mermaid DLL', () => {
it( 'exports MermaidWidget', () => {
expect( MermaidDll ).to.equal( Mermaid );
} );
describe( 'icons', () => {
it( 'exports the "insertMermaidIcon" icon', () => {
expect( icons.insertMermaidIcon ).to.equal( insertMermaidIcon );
} );
it( 'exports the "infoIcon" icon', () => {
expect( icons.infoIcon ).to.equal( infoIcon );
} );
it( 'exports the "previewModeIcon" icon', () => {
expect( icons.previewModeIcon ).to.equal( previewModeIcon );
} );
it( 'exports the "splitModeIcon" icon', () => {
expect( icons.splitModeIcon ).to.equal( splitModeIcon );
} );
it( 'exports the "sourceModeIcon" icon', () => {
expect( icons.sourceModeIcon ).to.equal( sourceModeIcon );
} );
} );
} );