Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++
782 B
Raw Blame
import test from 'node:test';
import assert from 'node:assert/strict';
import { shownEngineVersion } from '../src/lib/engine-version.ts';

test('About never shows the host placeholder engine version while the real one is still being read', () => {
  assert.equal(shownEngineVersion({ available: false }, 'strata-engine 0.1.0'), undefined);
  assert.equal(shownEngineVersion(null, 'strata-engine 0.1.0'), undefined);
  assert.equal(shownEngineVersion({ available: true, installed: { engine: { version: '0.1.48' } } }, 'strata-engine 0.1.0'), '0.1.48');
  assert.equal(shownEngineVersion({ available: true, installed: { engine: null } }, 'strata-engine 0.1.0'), undefined);
  assert.equal(shownEngineVersion({ available: false }, 'strata-engine 0.1.51'), 'strata-engine 0.1.51');
});