Skip to content

Commit

Permalink
chore: speed-up the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakovljevic-mladen committed Sep 26, 2022
1 parent fad3e6a commit 43fadc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/operators/audit-spec.ts
Expand Up @@ -395,7 +395,7 @@ describe('audit operator', () => {
});

it('should audit by promise resolves', (done) => {
const e1 = interval(10).pipe(take(5));
const e1 = interval(1).pipe(take(5));
const expected = [0, 1, 2, 3, 4];

e1.pipe(audit(() => Promise.resolve(42))).subscribe({
Expand All @@ -413,7 +413,7 @@ describe('audit operator', () => {
});

it('should raise error when promise rejects', (done) => {
const e1 = interval(10).pipe(take(10));
const e1 = interval(1).pipe(take(10));
const expected = [0, 1, 2];
const error = new Error('error');

Expand Down
4 changes: 2 additions & 2 deletions spec/operators/delayWhen-spec.ts
Expand Up @@ -340,7 +340,7 @@ describe('delayWhen', () => {
});

it('should delayWhen Promise resolves', (done) => {
const e1 = interval(10).pipe(take(5));
const e1 = interval(1).pipe(take(5));
const expected = [0, 1, 2, 3, 4];

e1.pipe(delayWhen(() => Promise.resolve(42))).subscribe({
Expand All @@ -358,7 +358,7 @@ describe('delayWhen', () => {
});

it('should raise error when Promise rejects', (done) => {
const e1 = interval(10).pipe(take(10));
const e1 = interval(1).pipe(take(10));
const expected = [0, 1, 2];
const error = new Error('err');

Expand Down

0 comments on commit 43fadc3

Please sign in to comment.