Skip to content

Commit

Permalink
chore: write tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Oct 9, 2024
1 parent bcd9079 commit a1c152b
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
///<reference types="svelte" />
;function render() {

let name1 = "world"
let name2/*Ωignore_startΩ*/;name2 = __sveltets_2_any(name2);/*Ωignore_endΩ*/

let rename1 = '';
let rename2/*Ωignore_startΩ*/;rename2 = __sveltets_2_any(rename2);/*Ωignore_endΩ*/;

class Foo {}
function bar() {}
const baz = '';

class RenameFoo {}
function renamebar() {}
const renamebaz = '';


;
async () => { { svelteHTML.createElement("svelte:options", {"runes":true,});}

};
return { props: /** @type {Record<string, never>} */ ({}), exports: /** @type {{name1: typeof name1,name2: typeof name2,renamed1: typeof rename1,renamed2: typeof rename2,Foo: typeof Foo,bar: typeof bar,baz: typeof baz,RenamedFoo: typeof RenameFoo,renamedbar: typeof renamebar,renamedbaz: typeof renamebaz}} */ ({}), bindings: __sveltets_$$bindings(''), slots: {}, events: {} }}
const Input__SvelteComponent_ = __sveltets_2_fn_component(render());
export default Input__SvelteComponent_;
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<svelte:options runes />

<script>
let name1 = "world"
let name2
let rename1 = '';
let rename2;
class Foo {}
function bar() {}
const baz = '';
class RenameFoo {}
function renamebar() {}
const renamebaz = '';
export { name1, name2, rename1 as renamed1, rename2 as renamed2, Foo, bar, baz, RenameFoo as RenamedFoo, renamebar as renamedbar, renamebaz as renamedbaz };
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
///<reference types="svelte" />
;function render() {

let name = "world"
let name2 = "world"

;
async () => { { svelteHTML.createElement("svelte:options", {"runes":true,});}

};
return { props: /** @type {Record<string, never>} */ ({}), exports: /** @type {{name3: typeof name,name4: typeof name2}} */ ({}), bindings: __sveltets_$$bindings(''), slots: {}, events: {} }}
const Input__SvelteComponent_ = __sveltets_2_fn_component(render());
export default Input__SvelteComponent_;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<svelte:options runes />

<script>
let name = "world"
let name2 = "world"
export { name as name3, name2 as name4 };
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
///<reference types="svelte" />
;function render() {

let name1: string = "world"/*Ωignore_startΩ*/;name1 = __sveltets_2_any(name1);/*Ωignore_endΩ*/
let name2: string/*Ωignore_startΩ*/;name2 = __sveltets_2_any(name2);/*Ωignore_endΩ*/;
let name3: string = ''/*Ωignore_startΩ*/;name3 = __sveltets_2_any(name3);/*Ωignore_endΩ*/;let name4: string/*Ωignore_startΩ*/;name4 = __sveltets_2_any(name4);/*Ωignore_endΩ*/;

let rename1: string = ''/*Ωignore_startΩ*/;rename1 = __sveltets_2_any(rename1);/*Ωignore_endΩ*/;
let rename2: string/*Ωignore_startΩ*/;rename2 = __sveltets_2_any(rename2);/*Ωignore_endΩ*/;

class Foo {}
function bar() {}
const baz: string = '';

class RenameFoo {}
function renamebar() {}
const renamebaz: string = '';


;
async () => { { svelteHTML.createElement("svelte:options", {"runes":true,});}
};
return { props: {} as Record<string, never>, exports: {} as any as { name1: string,name2: string,name3: string,name4: string,renamed1: string,renamed2: string,Foo: typeof Foo,bar: typeof bar,baz: string,RenamedFoo: typeof RenameFoo,renamedbar: typeof renamebar,renamedbaz: string }, bindings: __sveltets_$$bindings(''), slots: {}, events: {} }}
const Input__SvelteComponent_ = __sveltets_2_fn_component(render());
export default Input__SvelteComponent_;
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<svelte:options runes />
<script>
let name1: string = "world"
let name2: string;
let name3: string = '', name4: string;
let rename1: string = '';
let rename2: string;
class Foo {}
function bar() {}
const baz: string = '';
class RenameFoo {}
function renamebar() {}
const renamebaz: string = '';
export { name1, name2, name3, name4, rename1 as renamed1, rename2 as renamed2, Foo, bar, baz, RenameFoo as RenamedFoo, renamebar as renamedbar, renamebaz as renamedbaz };
</script>

0 comments on commit a1c152b

Please sign in to comment.