@@ -129,7 +129,7 @@ describe("Rendering", () => {
129
129
<button id="trigger" on:click={() => isOpen = !isOpen}>
130
130
Trigger
131
131
</button>
132
- <Dialog open={true} on:close={console.log} static>
132
+ <Dialog open on:close={console.log} static>
133
133
<p>Contents</p>
134
134
<div tabindex={0} on:focus={focusCounter} />
135
135
</Dialog>
@@ -312,7 +312,7 @@ describe("Rendering", () => {
312
312
'DialogTitle should have slot props' ,
313
313
suppressConsoleLogs ( async ( ) => {
314
314
render ( svelte `
315
- <Dialog open={true} on:close={console.log}>
315
+ <Dialog open on:close={console.log}>
316
316
<DialogTitle let:open>{JSON.stringify({ open })}</DialogTitle>
317
317
<TestTabSentinel />
318
318
</Dialog>
@@ -335,7 +335,7 @@ describe("Rendering", () => {
335
335
'DialogDescription should have slot props' ,
336
336
suppressConsoleLogs ( async ( ) => {
337
337
render ( svelte `
338
- <Dialog open={true} on:close={console.log}>
338
+ <Dialog open on:close={console.log}>
339
339
<DialogDescription let:open>{JSON.stringify({ open })}</DialogDescription>
340
340
<TestTabSentinel />
341
341
</Dialog>
@@ -359,7 +359,7 @@ describe('Composition', () => {
359
359
'should be possible to open the Dialog via a Transition component' ,
360
360
suppressConsoleLogs ( async ( ) => {
361
361
render ( svelte `
362
- <Transition show={true} >
362
+ <Transition show>
363
363
<Dialog on:close={console.log}>
364
364
<DialogDescription>Description</DialogDescription>
365
365
<TestTabSentinel />
@@ -598,7 +598,7 @@ describe('Mouse interactions', () => {
598
598
let wrapperFn = jest . fn ( )
599
599
render ( svelte `
600
600
<div on:click={wrapperFn}>
601
- <ManagedDialog initialOpen={true} >
601
+ <ManagedDialog initialOpen>
602
602
Contents
603
603
<DialogOverlay />
604
604
<TestTabSentinel />
@@ -628,7 +628,7 @@ describe('Mouse interactions', () => {
628
628
suppressConsoleLogs ( async ( ) => {
629
629
let submitFn = jest . fn ( )
630
630
render ( svelte `
631
- <ManagedDialog initialOpen={true} >
631
+ <ManagedDialog initialOpen>
632
632
<form on:submit={submitFn}>
633
633
<input type="hidden" value="abc">
634
634
<button type="submit">Submit</button>
@@ -654,7 +654,7 @@ describe('Mouse interactions', () => {
654
654
let wrapperFn = jest . fn ( )
655
655
render ( svelte `
656
656
<div on:click={wrapperFn}>
657
- <ManagedDialog initialOpen={true} buttonInside={true} buttonText="Inside">
657
+ <ManagedDialog initialOpen buttonInside buttonText="Inside">
658
658
Contents
659
659
<TestTabSentinel />
660
660
</ManagedDialog>
0 commit comments