Skip to content

Commit

Permalink
#25: Redo tunit tests to reflect mvp code switching
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Sep 27, 2021
1 parent 8005e49 commit 10f7673
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cli/commands/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class InstallCommand extends Command {
async run() {
const {flags} = this.parse(InstallCommand);
const name = flags.name || 'world';
this.log(`goodbye ${name} from ./src/commands/hello.js`);
this.log('install plugin');
}
}

Expand Down
17 changes: 0 additions & 17 deletions test/commands/hello.test.js

This file was deleted.

17 changes: 17 additions & 0 deletions test/commands/install.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const {expect, test} = require('@oclif/test');

describe('install', () => {
test
.stdout()
.command(['install'])
.it('runs install', ctx => {
expect(ctx.stdout).to.contain('install plugin');
});

test
.stdout()
.command(['install', 'docker-desktop'])
.it('runs install docker-desktop', ctx => {
expect(ctx.stdout).to.contain('install docker-desktop');
});
});

0 comments on commit 10f7673

Please sign in to comment.