deno-musings/test_framework.mjs

18 lines
302 B
JavaScript
Raw Normal View History

2024-10-12 12:28:41 -04:00
const url =new URL(import.meta.url)
let context = url.search.substring(1)
if(context)
{
console.log("context found:", context);
}
else
{
console.log("no context:", url);
}
export default function(){
console.log("spoof hook context", context);
console.log("spoof hook this", this);
}