test(cli): share nodes ios fixture helpers
This commit is contained in:
12
src/cli/program.nodes-test-helpers.test.ts
Normal file
12
src/cli/program.nodes-test-helpers.test.ts
Normal 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],
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user