11 lines
433 B
JavaScript
11 lines
433 B
JavaScript
import assert from 'node:assert/strict';
|
|
import { readFile } from 'node:fs/promises';
|
|
import test from 'node:test';
|
|
|
|
test('dock preview is mounted in the workspace rather than inside the moving panel', async () => {
|
|
const source = await readFile(new URL('../src/components/FloatingPanel.tsx', import.meta.url), 'utf8');
|
|
|
|
assert.match(source, /createPortal\(/);
|
|
assert.match(source, /workspaceNodeRef\.current,\s*\n\s*\)/);
|
|
});
|