Skip to content

armgit / Orkas

Public Imported from GitHub
0

Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.

806 B
Raw Blame
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';

describe('custom model dialog layout', () => {
  it('renders the compatibility hint as a subtitle inside the modal title', () => {
    const settingsSource = readFileSync(
      resolve(__dirname, '../../src/renderer/modules/settings.js'),
      'utf8',
    );
    const styleSource = readFileSync(
      resolve(__dirname, '../../src/renderer/style.css'),
      'utf8',
    );

    expect(settingsSource).toMatch(
      /title\.innerHTML\s*=\s*`[\s\S]*class="form-hint custom-model-intro"[\s\S]*`;\s*body\.innerHTML/,
    );
    expect(styleSource).toMatch(
      /\.modal-title\s*>\s*\.custom-model-intro\s*\{[\s\S]*margin:\s*4px 0 0;[\s\S]*font-size:\s*12px;/,
    );
  });
});