test(mesh): drop the buildRemote case its neighbour already subsumes

'turns every manifest step into a lazy remote node' built the same thing as
the test directly below it and asserted less about it: one step token instead
of two, no assertion on what the RPC was called with. Two tests covering one
behaviour, one of them strictly weaker.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-12 15:40:26 -05:00
1 parent 8ef7c3ee14
commit 6e050197b6
1 file changed
-9
-9
View File
@@ -9,15 +9,6 @@ const fakeLink = (calls: any[]): Link => ({
});
describe('teacup buildRemote', () => {
it('turns every manifest step into a lazy remote node', async () => {
const link = { manifest: { steps: ['auth'], routes: [] }, rpc: async () => ({ ok: true }) } as any;
const { steps, routes } = buildRemote(link);
expect(routes).toEqual([]);
expect(steps.map((s: any) => s.name)).toEqual(['auth']);
expect(await steps[0].run({})).toEqual({ auth: { ok: true } });
});
it('makes a step node per manifest token, with RPC runners returning merge objects', async () => {
const calls: any[] = [];
const { steps } = buildRemote(fakeLink(calls));