Skip to content

Conversation

philihp
Copy link
Contributor

@philihp philihp commented May 2, 2020

This raises the line-by-line test coverage from 98% to 100%. I tried to keep my edits limited to only the tests, with the exception of src/js/store/configureStore.ts having a block of code that looks like it exists for debugging/development.

Copy link
Member

@manosim manosim left a comment

Choose a reason for hiding this comment

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

Great stuff! Thank you very much for your PR @philihp - I've left two comments - not 100% related to this PR but would be good if we can sort these out. That 100% badge in the README will look good!

storageMiddleware,
];

/* istanbul ignore next */
Copy link
Member

Choose a reason for hiding this comment

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

Might not be related to this PR - but shall we remove this block completely (along with the isDev variable)? I guess we can also remove redux-logger from package.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Awesome! Even better 😎, I'll make this change.

I didn't want to overstep and really tried to avoid changing non-test files, but if you'd be okay with refactors, I'd be happy to go deeper and propose some cleanup changes.


exports[`./utils/github-api.ts should format the notification reason 12`] = `
Object {
"description": undefined,
Copy link
Member

Choose a reason for hiding this comment

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

Just realised that this is broken in the source file - shall we update the actual file https://github.com/manosim/gitify/blob/master/src/js/utils/github-api.ts#L48 to use DESCRIPTIONS['CI_ACTIVITY'] which will remove that undefined.

Copy link
Member

@manosim manosim left a comment

Choose a reason for hiding this comment

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

Cheer for making the changes @philihp 🚀

@philihp
Copy link
Contributor Author

philihp commented May 2, 2020

:shipit:

@manosim manosim merged commit 3cd4238 into gitify-app:master May 2, 2020
@setchy setchy added the test Enhancements to test coverage or quality label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Enhancements to test coverage or quality
Development

Successfully merging this pull request may close these issues.

3 participants