Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isSilent option #155

Merged
merged 3 commits into from Sep 6, 2020
Merged

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.

@@ -294,16 +308,19 @@ test('set the correct interval when changing spinner (string case)', t => {

spinner.spinner = 'layer';

t.is(spinner.interval, 150);
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