deno-musings/test_framework.mjs

18 lines
302 B
JavaScript

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);
}