a6cbcc273e
Made-with: Cursor
29 lines
928 B
TypeScript
29 lines
928 B
TypeScript
import assert from 'node:assert/strict';
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import test from 'node:test';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
import { ipcChannels } from './contracts';
|
|
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
function readRel(rel: string): string {
|
|
return fs.readFileSync(path.join(here, rel), 'utf8');
|
|
}
|
|
|
|
void test('ipcChannels: удалён media API (быстрый микшер)', () => {
|
|
assert.ok(!('media' in ipcChannels));
|
|
});
|
|
|
|
void test('ControlApp: UI быстрого микшера удалён', () => {
|
|
const src = readRel('../../renderer/control/ControlApp.tsx');
|
|
assert.ok(!src.includes('Быстрый микшер'));
|
|
assert.ok(!src.includes('MixerRow'));
|
|
});
|
|
|
|
void test('main: обработчики media IPC удалены', () => {
|
|
const src = readRel('../../main/index.ts');
|
|
assert.ok(!src.includes('ipcChannels.media'));
|
|
});
|