diff --git a/package-lock.json b/package-lock.json index 67815d48..7a02cd2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,16 +4,6 @@ "lockfileVersion": 1, "requires": true, "dependencies": { - "@aidemaster/node-memwatch": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@aidemaster/node-memwatch/-/node-memwatch-1.0.5.tgz", - "integrity": "sha512-S4M2lc0EmlCwgchzKNO53r4vXsDE/FmF/t7ecvpEmvN/AhCHjhqsGQT/0URpkYMjIucVgJZsHRW2xpyj5RHeMw==", - "dev": true, - "requires": { - "bindings": "^1.3.0", - "nan": "^2.9.2" - } - }, "@babel/code-frame": { "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", @@ -1778,12 +1768,6 @@ "next-tick": "~1.0.0" } }, - "es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, "es6-iterator": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", @@ -3531,25 +3515,6 @@ "invert-kv": "^1.0.0" } }, - "leakage": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/leakage/-/leakage-0.5.0.tgz", - "integrity": "sha512-FNnIPOutUrSn8Rz/SchRYKqwB+LrImReGt+z9Qjp4/iSByVpm7cNbc3yV1GsNYss8NrkTOr7R3le/MzK7QNo+Q==", - "dev": true, - "requires": { - "@aidemaster/node-memwatch": "^1.0.5", - "es6-error": "^4.0.2", - "left-pad": "^1.1.3", - "minimist": "^1.2.0", - "pretty-bytes": "^4.0.2" - } - }, - "left-pad": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", - "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", - "dev": true - }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", @@ -4758,12 +4723,6 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", "dev": true }, - "pretty-bytes": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz", - "integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=", - "dev": true - }, "prettycli": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/prettycli/-/prettycli-1.4.3.tgz", diff --git a/package.json b/package.json index 93d7989c..f1377eac 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,6 @@ "bundlesize": "^0.18.0", "eslint": "^6.5.1", "http-server": "^0.12.0", - "leakage": "^0.5.0", "mocha": "^6.2.2", "request": "^2.81.0", "request-promise": "^4.2.1", diff --git a/test/app.test.js b/test/app.test.js index 06d3ce8b..98a803ba 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -1,5 +1,4 @@ const assert = require('assert'); -const iterate = require('leakage').iterate; const rp = require('request-promise'); const app = require('../src/app'); @@ -19,19 +18,6 @@ describe('Feathers application tests', () => { ); }); - it('does not leak', async function() { - this.timeout(90000); - await iterate.async(async () => { - return rp('http://localhost:8080/events/2019/01/06/trail-1898/'); - }, { - iterations: 2 - }).catch(error => { - const increaseSize = error.message.split('\n')[0].split('by')[1].trim(); - assert.ok(parseFloat(increaseSize) < 6.5, `Increase was ${increaseSize}`); - assert.ok(increaseSize.indexOf('MB') > 0, 'Increase is in MB'); - }); - }); - xdescribe('404', function() { it('shows a 404 HTML page', () => { return rp({