Skip to content

Commit

Permalink
fix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vlio20 committed Dec 6, 2024
1 parent 52f9f22 commit bb36ceb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/throttle-async/throttle-async.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('throttle-async', () => {
}
}

return new Promise(async (resolve) => {
await new Promise(async (resolve) => {
const t = new T();

assert.strictEqual(t.prop, 0);
Expand All @@ -48,6 +48,7 @@ describe('throttle-async', () => {
await sleep(50);
assert.strictEqual(t.prop, 2);
});

});

it('should verify method invocation is throttled 2', async () => {
Expand All @@ -63,7 +64,7 @@ describe('throttle-async', () => {
}
}

return new Promise((resolve) => {
await new Promise((resolve) => {
const t = new T();

t.foo().then((res) => {
Expand Down Expand Up @@ -96,7 +97,7 @@ describe('throttle-async', () => {
}
}

return new Promise((resolve) => {
await new Promise((resolve) => {
const t = new T();

t.foo('a')
Expand Down

0 comments on commit bb36ceb

Please sign in to comment.