aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/clipboard.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'integration/bunjs-only-snippets/clipboard.test.js')
-rw-r--r--integration/bunjs-only-snippets/clipboard.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/integration/bunjs-only-snippets/clipboard.test.js b/integration/bunjs-only-snippets/clipboard.test.js
new file mode 100644
index 000000000..c23f74210
--- /dev/null
+++ b/integration/bunjs-only-snippets/clipboard.test.js
@@ -0,0 +1,7 @@
+import { it } from "bun:test";
+
+it("read", async () => {
+ // This doesn't run on Linux but it shouldn't throw at least
+ const text = await Bun.Clipboard.readText();
+ expect(text).toBe("hello");
+});