summaryrefslogtreecommitdiff
path: root/tests/specs/test/document/document_test.js
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2024-10-15 22:51:39 +0100
committerGitHub <noreply@github.com>2024-10-15 21:51:39 +0000
commitee904ec06c1a3b3d4e4a87898e777e2f9b587b07 (patch)
tree87dd34f481c9d35ef9c696599889294269ffff29 /tests/specs/test/document/document_test.js
parent3065dadea3792539f050346c534afc0a7821c2b6 (diff)
fix: add hint for missing `document` global in terminal error (#26218)
This came up on Discord as a question so I thought it's worth adding a hint for this as it might be a common pitfall. --------- Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Diffstat (limited to 'tests/specs/test/document/document_test.js')
-rw-r--r--tests/specs/test/document/document_test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/specs/test/document/document_test.js b/tests/specs/test/document/document_test.js
new file mode 100644
index 000000000..d60d6893c
--- /dev/null
+++ b/tests/specs/test/document/document_test.js
@@ -0,0 +1,3 @@
+Deno.test("document query selector", () => {
+ document.querySelector("div");
+});