Skip to content

Commit

Permalink
Fixes for tests to percentage cpu
Browse files Browse the repository at this point in the history
Signed-off-by: Gnanakeethan Balasubramaniam <[email protected]>
  • Loading branch information
gnanakeethan committed Aug 31, 2023
1 parent 5c2abfc commit 9e4ecfc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/teads-curve/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ describe('teads:configure test', () => {
impactModel.calculate([
{
duration: 3600,
cpu: 0.5,
cpu: 50.0,
datetime: '2021-01-01T00:00:00Z',
},
])
).resolves.toStrictEqual([
{
energy: 0.15,
duration: 3600,
cpu: 0.5,
cpu: 50.0,
datetime: '2021-01-01T00:00:00Z',
},
]);
Expand All @@ -35,36 +35,36 @@ describe('teads:configure test', () => {
impactModel.calculate([
{
duration: 3600,
cpu: 0.1,
cpu: 10.0,
datetime: '2021-01-01T00:00:00Z',
},
{
duration: 3600,
cpu: 0.5,
cpu: 50.0,
datetime: '2021-01-01T00:00:00Z',
},
{
duration: 3600,
cpu: 1,
cpu: 100.0,
datetime: '2021-01-01T00:00:00Z',
},
])
).resolves.toStrictEqual([
{
duration: 3600,
cpu: 0.1,
cpu: 10.0,
datetime: '2021-01-01T00:00:00Z',
energy: 0.096,
},
{
duration: 3600,
cpu: 0.5,
cpu: 50.0,
datetime: '2021-01-01T00:00:00Z',
energy: 0.225,
},
{
duration: 3600,
cpu: 1,
cpu: 100.0,
datetime: '2021-01-01T00:00:00Z',
energy: 0.306,
},
Expand Down

0 comments on commit 9e4ecfc

Please sign in to comment.