Skip to content

Commit

Permalink
✅ Disable caution check
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Mar 10, 2020
1 parent a8dbb7a commit 368cf95
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/commands/__tests__/docker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ConfigOptions from 'enums/ConfigOptions';
import Config from 'commands/config';

describe('docker', () => {
describe('fuzzy disabled', async () => {
describe('fuzzy disabled (default config)', async () => {
const command = new Config('disable', {
prompt: () => ({ choice: ConfigOptions.FUZZY_SEARCH }),
});
Expand Down Expand Up @@ -64,10 +64,15 @@ describe('docker', () => {
});

describe('fuzzy enabled', async () => {
const command = new Config('enable', {
const enable = new Config('enable', {
prompt: () => ({ choice: ConfigOptions.FUZZY_SEARCH }),
});
await command.run();
await enable.run();

const check = new Config('disable', {
prompt: () => ({ choice: ConfigOptions.CAUTION_CHECK }),
});
await check.run();

it('should correctly fuzzy match the fully matched name', async () => {
const command = new Docker('start', {
Expand Down

0 comments on commit 368cf95

Please sign in to comment.