From 8dc12da1968ea3f13dfb59ef7e94be326450dc3e Mon Sep 17 00:00:00 2001 From: Gnanakeethan Balasubramaniam Date: Sun, 24 Sep 2023 19:11:15 +0530 Subject: [PATCH] Fixing tests Signed-off-by: Gnanakeethan Balasubramaniam --- src/lib/watt-time/index.test.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/lib/watt-time/index.test.ts b/src/lib/watt-time/index.test.ts index f10704678..22a7e2aa2 100644 --- a/src/lib/watt-time/index.test.ts +++ b/src/lib/watt-time/index.test.ts @@ -32,20 +32,14 @@ describe('watt-time:configure test', () => { await expect( model.calculate([ { - location: { - latitude: 37.7749, - longitude: -122.4194, - }, + location: '37.7749,-122.4194', timestamp: '2021-01-01T00:00:00Z', duration: 3600, }, ]) ).resolves.toStrictEqual([ { - location: { - latitude: 37.7749, - longitude: -122.4194, - }, + location: '37.7749,-122.4194', timestamp: '2021-01-01T00:00:00Z', duration: 3600, 'grid-ci': 2096.256940667132,