We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 607dfcf + 8a5a0d3 commit 2eff8bdCopy full SHA for 2eff8bd
tests/dwait.spec.ts
@@ -115,7 +115,7 @@ describe("dwait Tests", () => {
115
expect.objectContaining({ foo: OK + OK })
116
);
117
});
118
- test("should be able to wrap a constructor successfully", async () => {
+ test("should be able to wrap functions with returning promises", async () => {
119
const dwaitPromise = dwait(new TestClass(OK, NUMBER, OK)).addBar();
120
await expect(dwaitPromise.await).resolves.toEqual(
121
NUMBER + 1
0 commit comments