aboutsummaryrefslogtreecommitdiff
path: root/integration/snippets/public
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-17 16:10:43 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-17 16:10:43 -0700
commit84632571c7b516125b84e042e116a6d6bc76e20e (patch)
tree488eb1e69a313528f1b684113b91a38d01914874 /integration/snippets/public
parentaf1061e47ab4b21ef67ff18c40da3f2f6cb342c6 (diff)
downloadbun-v0.0.19.tar.gz
bun-v0.0.19.tar.zst
bun-v0.0.19.zip
Add test for "shuffle" function for lodashbun-v0.0.19
Diffstat (limited to 'integration/snippets/public')
-rw-r--r--integration/snippets/public/index.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/integration/snippets/public/index.html b/integration/snippets/public/index.html
index 74a744a7d..5358fa423 100644
--- a/integration/snippets/public/index.html
+++ b/integration/snippets/public/index.html
@@ -46,6 +46,23 @@
return await testFunction();
};
+
+ if (globalThis.location.pathname.endsWith("-test")) {
+ globalThis.testDone = (path) => alert(`test ${path} success`);
+ globalThis.testFail = (path) => alert(`!test ${path} fail`);
+ runTest(
+ globalThis.location.pathname.substring(
+ 0,
+ location.pathname.length - "-test".length
+ )
+ ).then(
+ () => {},
+ (err) => {
+ console.error(err);
+ alert(err.toString());
+ }
+ );
+ }
</script>
</body>
</html>