X Tutup
Skip to content

Clean up SustainableWebDesign model perByte tests#157

Merged
fershad merged 1 commit intothegreenwebfoundation:mainfrom
EvanHahn:clean-up-swd-perbyte-tests
Sep 1, 2023
Merged

Clean up SustainableWebDesign model perByte tests#157
fershad merged 1 commit intothegreenwebfoundation:mainfrom
EvanHahn:clean-up-swd-perbyte-tests

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
@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.

2 participants

X Tutup