-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Labels
Description
Hi,
for the record, here is a fix to update to jasmine >= 4 (used to publish configurable-http-proxy into Debian):
--- a/prom-client/test/metrics/eventLoopLagTest.js
+++ b/prom-client/test/metrics/eventLoopLagTest.js
@@ -12,11 +12,11 @@
register.clear();
});
- it('should add metric to the registry', async done => {
+ it('should add metric to the registry', async () => {
expect(await register.getMetricsAsJSON()).toHaveLength(0);
eventLoopLag();
- setTimeout(async () => {
+ setTimeout(async (done) => {
const metrics = await register.getMetricsAsJSON();
expect(metrics).toHaveLength(8);
Cheers,
Yadd