-
-
Notifications
You must be signed in to change notification settings - Fork 68
Added support for iOS 15 property interruption-level #83
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
Added support for iOS 15 property interruption-level #83
Conversation
|
@davimacedo @TysonAndre are you able to look this over? |
TysonAndre
left a comment
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.
lgtm other than code style nits
| }, | ||
|
|
||
| set interruptionLevel(value) { | ||
| if(typeof value === "string" || value === undefined) { |
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.
| if(typeof value === "string" || value === undefined) { | |
| if (typeof value === "string" || value === undefined) { |
nit: use the same spacing used elsewhere
EDIT: oh, it was already inconsistent but if ( seems several times more common. Didn't realize that.
| describe("setInterruptionLevel", function () { | ||
| it("is chainable", function () { | ||
| expect(note.setInterruptionLevel("the-interruption-level")).to.equal(note); | ||
| expect(compiledOutput()).to.have.nested.property("aps.interruption\-level", "the-interruption-level"); |
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.
| expect(compiledOutput()).to.have.nested.property("aps.interruption\-level", "the-interruption-level"); | |
| expect(compiledOutput()).to.have.nested.property("aps.interruption-level", "the-interruption-level"); |
nit: unnecessary escaping
EDIT: oh, based on existing test case with unnecessary escaping.
|
@TysonAndre since the code nits are existing one, I'm going to merge this one. Maybe we should install lint/prettier to this repo. What do you think? |
A copy of the PR on Netatmo#6
See more here, here and here.