Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Aug 3, 2024
1 parent 3b70cd5 commit 36507d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/ops/delay/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ export default () => {
describe('for negative timeouts', () => {
it('must reuse the source iterable', async () => {
const source = _async([1, 2, 3]);
let lastIterable;
let destIterable;
const output = pipe(
source,
delay(-100),
consume((c) => {
lastIterable = c;
destIterable = c;
})
);
await _asyncValues(output);
expect(lastIterable).to.eq(source);
expect(destIterable).to.eq(source);
});
it('must not add delay for callback result', async () => {
const output = pipe(
Expand Down

0 comments on commit 36507d8

Please sign in to comment.