test(cli): share nodes ios fixture helpers

This commit is contained in:
Peter Steinberger
2026-02-21 21:55:57 +00:00
parent fb73c0034e
commit d6ad647f56
4 changed files with 29 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
import { describe, expect, it } from "vitest";
import { IOS_NODE, createIosNodeListResponse } from "./program.nodes-test-helpers.js";
describe("program.nodes-test-helpers", () => {
it("builds a node.list response with iOS node fixture", () => {
const response = createIosNodeListResponse(1234);
expect(response).toEqual({
ts: 1234,
nodes: [IOS_NODE],
});
});
});