Skip to content

Commit

Permalink
Drop node 10. Closes #4012
Browse files Browse the repository at this point in the history
  • Loading branch information
hueniverse committed Dec 28, 2019
1 parent a21c6bc commit 50d8d7d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js

node_js:
- "10"
- "12"
- "node"

Expand Down
35 changes: 0 additions & 35 deletions test/transmit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1977,41 +1977,6 @@ describe('transmission', () => {
expect(res.statusCode).to.equal(500);
});
});

describe('end()', () => {

it('node v8 and v10 coverage', async () => {

const AbortStream = class extends Stream.Readable {

constructor(request) {

super();
this.request = request;
}

_read(size) {

if (this.isDone) {
return;
}

this.isDone = true;
this.push('here is the response');
this.push(null);

this.request.raw.res.finished = true;
this.request.raw.req.emit('close');
}
};

const server = Hapi.server();
server.route({ method: 'GET', path: '/', handler: (request, h) => new AbortStream(request) });

const res = await server.inject({ url: '/' });
expect(res.statusCode).to.equal(200);
});
});
});


Expand Down

0 comments on commit 50d8d7d

Please sign in to comment.