Skip to content

Commit

Permalink
closes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
gdereese committed Mar 4, 2018
1 parent 7dccdcd commit 6307a8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/operation-command-builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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', () => {
Expand Down

0 comments on commit 6307a8e

Please sign in to comment.