-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Add isSilent
option
#155
Conversation
get isEnabled() { | ||
return this._isEnabled && !this.isSilent; | ||
} | ||
|
There was a problem hiding this comment.
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); | |||
}); | |||
|
There was a problem hiding this comment.
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.
Implements
isSilent
as discussed in #147.Fixes #147