From 8f9097cc6bea15d9d4e90ab2e54fec7b157396e6 Mon Sep 17 00:00:00 2001 From: fershad <27988517+fershad@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:17:29 +0800 Subject: [PATCH] update test constants --- src/constants/test-constants.js | 10 +++++----- src/sustainable-web-design-v3.test.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/constants/test-constants.js b/src/constants/test-constants.js index 9c12748..5e56456 100644 --- a/src/constants/test-constants.js +++ b/src/constants/test-constants.js @@ -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, @@ -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, diff --git a/src/sustainable-web-design-v3.test.js b/src/sustainable-web-design-v3.test.js index 14c716f..2cd189a 100644 --- a/src/sustainable-web-design-v3.test.js +++ b/src/sustainable-web-design-v3.test.js @@ -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", () => {