DNDGamePlayer: Electron редактор сцен, презентация, упаковка electron-builder
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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'));
|
||||
});
|
||||
Reference in New Issue
Block a user