Skip to content

Commit

Permalink
update test constants
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad committed Oct 23, 2024
1 parent cd94a29 commit 81633d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants/test-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ONEBYTE = {
export const SWDV3 = {
MILLION_GREY: 0.38998,
MILLION_GREEN: 0.33756,
MILLION_PERVISIT_GREY: 0.29455,
MILLION_PERVISIT_GREY: 0.29454,
MILLION_PERVISIT_GREEN: 0.25451,

TGWF_GREY_VALUE: 0.27980,
Expand Down
2 changes: 1 addition & 1 deletion src/sustainable-web-design-v3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe("sustainable web design model version 3", () => {
describe("emissionsPerVisitInGrams", () => {
it("should calculate the correct co2 per visit", () => {
const energy = swd.energyPerVisit(averageWebsiteInBytes);
expect(swd.emissionsPerVisitInGrams(energy)).toEqual(0.67);
expect(swd.emissionsPerVisitInGrams(energy)).toEqual(0.66);
});

it("should accept a dynamic KwH value", () => {
Expand Down

0 comments on commit 81633d7

Please sign in to comment.