Skip to content

Commit 2523994

Browse files
kanongilMarsup
authored andcommitted
Don't test for res.errored which only works on node 18+
1 parent 9cc3369 commit 2523994

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,6 @@ describe('inject()', () => {
586586
const res = await Shot.inject(dispatch, { method: 'get', url: '/' });
587587
expect(res.aborted).to.be.true();
588588
expect(res.statusCode).to.equal(499);
589-
expect(res.raw.res.errored).to.not.exist();
590589
});
591590

592591
it('returns aborted on immediate res.destroy(error)', async () => {
@@ -599,7 +598,6 @@ describe('inject()', () => {
599598
const res = await Shot.inject(dispatch, { method: 'get', url: '/' });
600599
expect(res.aborted).to.be.true();
601600
expect(res.statusCode).to.equal(499);
602-
expect(res.raw.res.errored).to.be.an.error('stop');
603601
});
604602

605603
it('returns aborted on res.destroy() while transmitting payload', async () => {
@@ -614,7 +612,6 @@ describe('inject()', () => {
614612
const res = await Shot.inject(dispatch, { method: 'get', url: '/' });
615613
expect(res.aborted).to.be.true();
616614
expect(res.statusCode).to.equal(404);
617-
expect(res.raw.res.errored).to.not.exist();
618615
expect(res.payload).to.equal('data');
619616
});
620617

@@ -630,7 +627,6 @@ describe('inject()', () => {
630627
const res = await Shot.inject(dispatch, { method: 'get', url: '/' });
631628
expect(res.aborted).to.be.true();
632629
expect(res.statusCode).to.equal(404);
633-
expect(res.raw.res.errored).to.be.an.error('stop');
634630
expect(res.payload).to.equal('data');
635631
});
636632

@@ -646,7 +642,6 @@ describe('inject()', () => {
646642
const res = await Shot.inject(dispatch, { method: 'get', url: '/' });
647643
expect(res.aborted).to.not.exist();
648644
expect(res.statusCode).to.equal(404);
649-
expect(res.raw.res.errored).to.not.exist();
650645
expect(res.payload).to.equal('data');
651646
});
652647

@@ -662,7 +657,6 @@ describe('inject()', () => {
662657
const res = await Shot.inject(dispatch, { method: 'get', url: '/' });
663658
expect(res.aborted).to.not.exist();
664659
expect(res.statusCode).to.equal(404);
665-
expect(res.raw.res.errored).to.be.an.error('stop');
666660
expect(res.payload).to.equal('data');
667661
});
668662
});

0 commit comments

Comments
 (0)