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

Clean up SustainableWebDesign model perByte tests #157

Merged

Conversation

EvanHahn
Copy link
Contributor

This change:

  • Adds more thorough tests for SustainableWebDesign.prototype.perByte
  • Removes the associated tests from co2.test.js
  • Makes a small functionality tweak: passing perByte(n) where n is less than 1 now behaves as if you called perByte(0), similar to the existing OneByte model code

This is part of #98.

This change:

- Adds more thorough tests for `SustainableWebDesign.prototype.perByte`
- Removes the associated tests from `co2.test.js`
- Makes a small functionality tweak: passing `perByte(n)` where `n` is
  less than 1 now behaves as if you called `perByte(0)`, similar to the
  existing `OneByte` model code
@fershad fershad merged commit a87c622 into thegreenwebfoundation:main Sep 1, 2023
3 checks passed
@EvanHahn EvanHahn deleted the clean-up-swd-perbyte-tests branch September 1, 2023 14:06
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

2 participants