Skip to content

Commit bb1ae1c

Browse files
committed
Fix failing test
1 parent 116b146 commit bb1ae1c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"deploy": "wrangler deploy",
99
"dev": "wrangler dev",
1010
"start": "wrangler dev",
11-
"test": "vitest"
11+
"test": "vitest run",
12+
"test:watch": "vitest"
1213
},
1314
"author": "vanadium23 <[email protected]>",
1415
"license": "MIT",

test/influx.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('reportMetric', () => {
1818
])
1919
};
2020
const env = {
21-
INFLUX_METRIC: 'test_metric',
21+
INFLUX_METRIC_NAME: 'test_metric',
2222
INFLUX_URL: 'https://influx.example.com',
2323
INFLUX_DATABASE: 'test_db',
2424
INFLUX_TOKEN: 'test_token'
@@ -59,7 +59,7 @@ describe('createMetricsFromRequest', () => {
5959
])
6060
};
6161
const env = {
62-
INFLUX_METRIC: 'test_metric'
62+
INFLUX_METRIC_NAME: 'test_metric'
6363
};
6464

6565
const result = createMetricsFromRequest(request, response, env);

0 commit comments

Comments
 (0)