Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Increase package utilities test coverage #259

Merged
merged 42 commits into from
Jan 9, 2019

Conversation

pjlee11
Copy link
Contributor

@pjlee11 pjlee11 commented Jan 4, 2019

Resolves #224

Follows up on #224 is dependant on #258.

Add tests for the package utilities using the newly created method in #258

  • I have assigned myself to this PR and the corresponding issues
  • Tests added for new features
  • Test engineer approval

To test this run npm install && npm run build && npm run test ensuring there are no errors. The test coverage for the packages gel-foundations, psammead-assets and psammead-styles should all change from 0% to 100%.

Phil Lee added 30 commits December 17, 2018 14:02
- Using the testing helper function to test the test helpers; That's pretty damn meta
- Add testing for the error and console.log in `testUtilityPackages`
…s/psammead into increase-utilities-test-coverage
…tching keys

- change the log to an Error
- if actual export has differing keys than the expected then Error
- if expected has differing keys than the actual export then Error
@pjlee11 pjlee11 added alpha-2 blocked This issue should not be worked on until another internal issue is completed - see desc for details labels Jan 4, 2019
@pjlee11 pjlee11 self-assigned this Jan 4, 2019
@pjlee11 pjlee11 mentioned this pull request Jan 4, 2019
3 tasks
@pjlee11 pjlee11 removed the blocked This issue should not be worked on until another internal issue is completed - see desc for details label Jan 8, 2019
@dr3
Copy link
Contributor

dr3 commented Jan 8, 2019

Only 42 commits? You could do with a boost ;)

@@ -2,6 +2,7 @@

| Version | Description |
|---------|-------------|
| 0.1.4 | [PR#224](https://github.com/BBC-News/psammead/pull/224) Add tests for the exported values, coverage 100% :tada: |
Copy link
Contributor

@bcmn bcmn Jan 8, 2019

Choose a reason for hiding this comment

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

What's happened to changelog info for 0.1.2 & 0.1.3? 😬 The package.json seems to imply these versions existed.

I know this isn't your PR, just intriguing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using git blame it seems this happened - 0934585
🤐

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the wider context it was as part of this PR https://github.com/bbc/psammead/pull/212/files

@jamesbrumpton
Copy link
Contributor

LGTM 👍

@dr3 dr3 merged commit 7a8dc4b into latest Jan 9, 2019
@dr3 dr3 deleted the increase-package-utilities-test-coverage branch January 9, 2019 13:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants