diff --git a/package-lock.json b/package-lock.json index 65f139d0465..3b597a9e1a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6287,7 +6287,10 @@ "debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==" + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } }, "decamelize": { "version": "1.2.0", @@ -6472,7 +6475,10 @@ "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, "define-property": { "version": "0.2.5", @@ -8649,7 +8655,10 @@ "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } }, "define-property": { "version": "0.2.5", diff --git a/tests/e2e/core-tests/specs/api/telemetry.test.js b/tests/e2e/core-tests/specs/api/telemetry.test.js index 72932b8c6da..bac61aaf206 100644 --- a/tests/e2e/core-tests/specs/api/telemetry.test.js +++ b/tests/e2e/core-tests/specs/api/telemetry.test.js @@ -39,7 +39,7 @@ const runTelemetryAPITest = () => { const response = await client .post( `/wc-telemetry/tracker`, data ) .catch( err => { - expect( err.code ).toBe( 400 ); + expect( err.statusCode ).toBe( 400 ); } ); expect( response ).toBeUndefined(); @@ -52,7 +52,7 @@ const runTelemetryAPITest = () => { version: '1.0', }) - expect( response.code ).toBe( 200 ); + expect( response.statusCode ).toBe( 200 ); } ); } ); };