Skip to content

Commit

Permalink
update test constants
Browse files Browse the repository at this point in the history
  • Loading branch information
fershad committed Sep 10, 2024
1 parent 870e621 commit 8f9097c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions 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.29443,
MILLION_PERVISIT_GREY: 0.29455,
MILLION_PERVISIT_GREEN: 0.25451,

TGWF_GREY_VALUE: 0.27980,
Expand All @@ -25,13 +25,13 @@ export const SWDV3 = {
MILLION_GREEN_DATACENTERS: 0.00607,
MILLION_GREY_PRODUCTION: 0.07399,

MILLION_PERVISIT_GREY_DEVICE_GRID_INTENSITY_CHANGE: 0.34827,
MILLION_PERVISIT_GREY_DEVICE_GRID_INTENSITY_CHANGE: 0.3463,
MILLION_PERVISIT_GREY_DATACENTER_GRID_INTENSITY_CHANGE: 0.30996,
MILLION_PERVISIT_GREY_NETWORK_GRID_INTENSITY_CHANGE: 0.30893,

MILLION_PERBYTE_GREY_DEVICE_GRID_INTENSITY_CHANGE: 0.46130,
MILLION_PERBYTE_GREY_DATACENTER_GRID_INTENSITY_CHANGE: 0.41055,
MILLION_PERBYTE_GREY_NETWORK_GRID_INTENSITY_CHANGE: 0.40918,
MILLION_PERBYTE_GREY_DEVICE_GRID_INTENSITY_CHANGE: 0.4587,
MILLION_PERBYTE_GREY_DATACENTER_GRID_INTENSITY_CHANGE: 0.40991,
MILLION_PERBYTE_GREY_NETWORK_GRID_INTENSITY_CHANGE: 0.40859,

MILLION_PERVISIT_GREY_DEVICES_FIRST: 0.15188,
MILLION_PERVISIT_GREY_DEVICES_SECOND: 0.00092,
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.66);
expect(swd.emissionsPerVisitInGrams(energy)).toEqual(0.67);
});

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

0 comments on commit 8f9097c

Please sign in to comment.