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

Extracted method that 'detects push method by reg id' #149

Merged

Conversation

jkblume
Copy link
Contributor

@jkblume jkblume commented Jan 17, 2021

Extracted method that detects device type / used push method out of send method. I will use it for logging / persisting the device type that was used by send() method.

@coveralls
Copy link

coveralls commented Jan 17, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling 012dae7 on jkblume:extract_push_method_by_reg_id_method into 99fc0bb on appfeel:master.

@@ -42,17 +72,17 @@ class PN {

// Classify each pushId for corresponding device
regIds.forEach((regId) => {
if (typeof regId === 'object') {
const pushMetdod = this.getPushMethodByRegId(regId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo pushMethod

@@ -30,6 +38,28 @@ class PN {
});
}

getPushMethodByRegId(regId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add test in test/push-notifications/basic.js

@@ -30,6 +38,28 @@ class PN {
});
}

getPushMethodByRegId(regId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please add documentation about newly exported function in README.md

@jkblume
Copy link
Contributor Author

jkblume commented Apr 19, 2021

Thanks for your review and sorry for my late response. I tried to address your points and hope it matches your expectations. I am glad to hear from you.

@alex-friedl alex-friedl merged commit 45a84b2 into appfeel:master Apr 24, 2021
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.

None yet

3 participants