24 lines
484 B
TypeScript
24 lines
484 B
TypeScript
import * as Inspector from "./module_inspector.ts";
|
|
|
|
Deno.test("check string parsing", ()=>{
|
|
|
|
const [local, global] = Inspector.Exports(`
|
|
// export in comment
|
|
/**
|
|
*
|
|
* export const TESTtt
|
|
* /
|
|
const fakeexport =()=>{};
|
|
const exportfake =()=>{};
|
|
export * from "react";
|
|
export{ thing1 as remapped, thing2}
|
|
export{ thing1 as remapped, thing2} from 'React';
|
|
export
|
|
export default function(){}
|
|
export const func=()=>{};
|
|
export let func=()=>{};
|
|
`)
|
|
|
|
console.log(local, global);
|
|
|
|
}) |