Files
stack/agents/rocko/work/queue-164/r1/project-fixture-approved.patch

19 lines
1.0 KiB
Diff

diff --git a/packages/cli/tests/project.test.mjs b/packages/cli/tests/project.test.mjs
index c101ba5e7..5e067247b 100644
--- a/packages/cli/tests/project.test.mjs
+++ b/packages/cli/tests/project.test.mjs
@@ -44,11 +44,12 @@ test('project create and list validate their arguments before any bus call', asy
assert.match(x.err.text, /mosaic project create <name>/);
}
const listed = [];
- const transport = () => async verb => (listed.push(verb), []);
+ const managementReads = [], transport = () => async verb => verb === 'plugins' ? (managementReads.push(verb), { business: 'acme', revision: 'a'.repeat(64), plugins: { channel: ['cli', 'webui'] } }) : (listed.push(verb), []);
const x = io(humanEnv(f.env));
assert.equal(await run(['project', 'list', '--business', 'acme'], x, { transport }), 0);
assert.deepEqual(listed, ['project.list']);
assert.equal(x.out.text, 'no projects\n');
+ assert.deepEqual(managementReads, ['plugins']);
});
test('project dispatcher reaches the human CLI', async t => {