← Files BranchaARCHIVED FILE
skills/brancha/app/src/ui/lib/api.test.ts
364 Bytes · Oct 3, 2026 · 06:30 UTC
import assert from 'node:assert/strict';
import test from 'node:test';
import { api } from '../api';
test('node preview URL carries the artifact revision', () => {
assert.equal(api.nodeHtmlUrl('node-1'), '/api/nodes/node-1/html');
assert.equal(
api.nodeHtmlUrl('node-1', 'updated:rev/2'),
'/api/nodes/node-1/html?revision=updated%3Arev%2F2',
);
});
SHA-256: 73aaa4415f6efa340da82ca666c6d7110a5cb622e468ebbb752ed077cca7f1e5