Skip to content

Commit fd0bb09

Browse files
authored
Update test.js
1 parent 65d9a2b commit fd0bb09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ test('do not run mapping after stop-on-error happened', async t => {
115115
pMap(input, async value => {
116116
mappedValues.push(value);
117117
if (value === 1) {
118-
return delay.reject(100, {value: new Error('Oops!')});
118+
await delay(100);
119+
throw new Error('Oops!');
119120
}
120121
})
121122
);

0 commit comments

Comments
 (0)