Skip to content

🎥 Make videos programmatically with React

fix test with updated data

Jonny Burgered12c838678c
diff --git a/packages/lambda/src/test/pricing.test.ts b/packages/lambda/src/test/pricing.test.ts
index 51e888edbd..b404277370 100644
--- a/packages/lambda/src/test/pricing.test.ts
+++ b/packages/lambda/src/test/pricing.test.ts
@@ -1,4 +1,3 @@
-import {MEMORY_SIZE} from '../constants';
import {getPriceInCents} from '../pricing/get-price';
test('Should calculate costs accurately', () => {
@@ -6,7 +5,14 @@ test('Should calculate costs accurately', () => {
getPriceInCents({
region: 'us-east-1',
durationMs: 20000,
- memory: MEMORY_SIZE,
+ memory: 2048,
})
- ).toEqual(0.00115);
+ ).toEqual(0.00067);
+ expect(
+ getPriceInCents({
+ region: 'us-east-1',
+ durationMs: 20000,
+ memory: 1024,
+ })
+ ).toEqual(0.00033);
});