29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
|
|
import { describe, it } from 'node:test';
|
||
|
|
import assert from 'node:assert';
|
||
|
|
|
||
|
|
describe('UnifiedShell Component Contract', () => {
|
||
|
|
it('exports UnifiedShell component', async () => {
|
||
|
|
try {
|
||
|
|
const mod = await import('../../src/components/shared/unified-shell');
|
||
|
|
assert.ok(mod.UnifiedShell, 'UnifiedShell should be exported');
|
||
|
|
assert.equal(typeof mod.UnifiedShell, 'function', 'UnifiedShell should be a function/component');
|
||
|
|
} catch (err: any) {
|
||
|
|
// Test should fail if module doesn't exist yet
|
||
|
|
assert.fail(`UnifiedShell module should exist: ${err.message}`);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
it('UnifiedShell accepts required props', async () => {
|
||
|
|
try {
|
||
|
|
const mod = await import('../../src/components/shared/unified-shell');
|
||
|
|
const UnifiedShell = mod.UnifiedShell;
|
||
|
|
|
||
|
|
// TypeScript will enforce prop types at compile time
|
||
|
|
// This test validates the component can be imported and called
|
||
|
|
assert.ok(UnifiedShell, 'Component should be callable');
|
||
|
|
} catch (err: any) {
|
||
|
|
assert.fail(`Component import failed: ${err.message}`);
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|