From 6307a8eb45407635dd0b802f7bbe313fc4862d4f Mon Sep 17 00:00:00 2001 From: gdereese Date: Sun, 4 Mar 2018 13:26:33 -0600 Subject: [PATCH] closes #27 --- test/operation-command-builder.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/operation-command-builder.spec.ts b/test/operation-command-builder.spec.ts index 055998a..2def6bd 100644 --- a/test/operation-command-builder.spec.ts +++ b/test/operation-command-builder.spec.ts @@ -174,7 +174,7 @@ describe('operation-command-builder', () => { ); }); - it('uses operation description as command description', () => { + it('uses operation summary as command description', () => { const vorpalInstance = vorpal(); const options = { interactive: false, @@ -191,15 +191,15 @@ describe('operation-command-builder', () => { const commandInfo = { commandStringParts: [], operation: { - description: 'foo', - operationId: null + operationId: null, + summary: 'foo' }, pathKey: null }; const command = builder.build(vorpalInstance, options, commandInfo); - expect(command._description).toBe(commandInfo.operation.description); + expect(command._description).toBe(commandInfo.operation.summary); }); it('sets alias from operation id if operation commands are being grouped', () => {