mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-20 09:09:35 +02:00
15 lines
714 B
TypeScript
15 lines
714 B
TypeScript
import { readFileSync } from 'node:fs';
|
|||
|
|
import { resolve } from 'node:path';
|
||
|
|
import { describe, expect, it } from 'vitest';
|
||
|
|
|
||
|
|
describe('tmux styled pane capture', () => {
|
||
|
|
it('requests SGR style escapes for canonical browser replay frames', () => {
|
||
|
|
const source = readFileSync(resolve(import.meta.dirname, '../src/tmux-manager.ts'), 'utf8');
|
||
|
|
const captureMethod = source.indexOf('capturePaneBuffer(muxName: string');
|
||
|
|
const captureCommand = source.indexOf('capture-pane -p', captureMethod);
|
||
|
|
|
||
|
|
expect(captureMethod).toBeGreaterThan(-1);
|
||
|
|
expect(captureCommand).toBeGreaterThan(captureMethod);
|
||
|
|
expect(source.slice(captureCommand, captureCommand + 80)).toContain('capture-pane -p -e');
|
||
|
|
});
|
||
|
|
});
|