Skip to content

Commit eae508b

Browse files
fix(operators): solved duplication
1 parent c551158 commit eae508b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/operators/src/request.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ describe('request', () => {
2929
const { request } = await import('./request.js');
3030

3131
const expectedVal = {
32-
a: new Error('NO CONNECTION'),
33-
b: { status: 500, ok: false },
32+
a: { status: 500, ok: false },
33+
b: new Error('NO CONNECTION'),
3434
c: { status: 200, ok: true }
3535
};
3636

3737
const triggerVal = [
38+
() => expectedVal.a,
3839
() => {
39-
throw expectedVal.a;
40+
throw expectedVal.b;
4041
},
41-
() => expectedVal.b,
4242
() => expectedVal.c
4343
];
4444

0 commit comments

Comments
 (0)