Skip to content

Commit 16a9da5

Browse files
committed
update tests
1 parent e62f209 commit 16a9da5

File tree

20 files changed

+85
-85
lines changed

20 files changed

+85
-85
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />

packages/kit/src/packaging/test/fixtures/exports-merge/expected/Test.svelte.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** @typedef {typeof __propDef.slots} TestSlots */
44
export default class Test extends SvelteComponentTyped<
55
{
6-
astring: string;
6+
astring?: string;
77
},
88
{
99
event: CustomEvent<any>;
@@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
2424
import { SvelteComponentTyped } from 'svelte';
2525
declare const __propDef: {
2626
props: {
27-
astring: string;
27+
astring?: string;
2828
};
2929
events: {
3030
event: CustomEvent<any>;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />

packages/kit/src/packaging/test/fixtures/exports-replace/expected/Test.svelte.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** @typedef {typeof __propDef.slots} TestSlots */
44
export default class Test extends SvelteComponentTyped<
55
{
6-
astring: string;
6+
astring?: string;
77
},
88
{
99
event: CustomEvent<any>;
@@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
2424
import { SvelteComponentTyped } from 'svelte';
2525
declare const __propDef: {
2626
props: {
27-
astring: string;
27+
astring?: string;
2828
};
2929
events: {
3030
event: CustomEvent<any>;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script>
2-
import { createEventDispatcher } from 'svelte';
3-
/**
4-
* @type {string}
5-
*/
6-
export const astring;
2+
import { createEventDispatcher } from 'svelte';
3+
/**
4+
* @type {string}
5+
*/
6+
export const astring = 'potato';
77
8-
const dispatch = createEventDispatcher();
9-
dispatch('event', true);
8+
const dispatch = createEventDispatcher();
9+
dispatch('event', true);
1010
</script>
1111

1212
<slot {astring} />

packages/kit/src/packaging/test/fixtures/files-exclude/expected/Test.svelte.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** @typedef {typeof __propDef.slots} TestSlots */
44
export default class Test extends SvelteComponentTyped<
55
{
6-
astring: string;
6+
astring?: string;
77
},
88
{
99
event: CustomEvent<any>;
@@ -24,7 +24,7 @@ export type TestSlots = typeof __propDef.slots;
2424
import { SvelteComponentTyped } from 'svelte';
2525
declare const __propDef: {
2626
props: {
27-
astring: string;
27+
astring?: string;
2828
};
2929
events: {
3030
event: CustomEvent<any>;

0 commit comments

Comments
 (0)