Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@brandon93s
Copy link
Contributor

@brandon93s brandon93s commented Aug 30, 2020

Implements isSilent as discussed in #147.

Fixes #147

get isEnabled() {
return this._isEnabled && !this.isSilent;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converted isEnabled to a getter and forcing it to false when isSilent is true. This reduced the footprint of the PR and prevented double checks of both flags.

const expectedInterval = process.platform === 'win32' ? 130 : 150;
t.is(spinner.interval, expectedInterval);
});

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patching/disabling a few tests to pass on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to conditionally disable ora?

2 participants