Skip to content

Commit

Permalink
Remove leakage
Browse files Browse the repository at this point in the history
It hasn’t been updated to support Node 12: andywer/leakage#34
  • Loading branch information
Chasen Le Hara committed Mar 14, 2020
1 parent 9a6d3b7 commit 593af92
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 56 deletions.
41 changes: 0 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 0 additions & 14 deletions test/app.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const assert = require('assert');
const iterate = require('leakage').iterate;
const rp = require('request-promise');
const app = require('../src/app');

Expand All @@ -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({
Expand Down

0 comments on commit 593af92

Please sign in to comment.