summaryrefslogtreecommitdiff
path: root/cli/js/testing.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/testing.ts')
-rw-r--r--cli/js/testing.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/js/testing.ts b/cli/js/testing.ts
index 6c56a2f71..fdb6c69fd 100644
--- a/cli/js/testing.ts
+++ b/cli/js/testing.ts
@@ -51,7 +51,10 @@ Before:
- completed: ${pre.opsCompletedAsync}
After:
- dispatched: ${post.opsDispatchedAsync}
- - completed: ${post.opsCompletedAsync}`
+ - completed: ${post.opsCompletedAsync}
+
+Make sure to await all promises returned from Deno APIs before
+finishing test case.`
);
};
}
@@ -71,7 +74,10 @@ function assertResources(
const postStr = JSON.stringify(post, null, 2);
const msg = `Test case is leaking resources.
Before: ${preStr}
-After: ${postStr}`;
+After: ${postStr}
+
+Make sure to close all open resource handles returned from Deno APIs before
+finishing test case.`;
assert(preStr === postStr, msg);
};
}