Skip to content

Update to jasmine >= 4 #386

@guimard

Description

@guimard

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions