kopia lustrzana https://github.com/shoelace-style/shoelace
				
				
				
			run prettier
							rodzic
							
								
									3d9fd3b889
								
							
						
					
					
						commit
						ad00d8840e
					
				|  | @ -15,7 +15,7 @@ describe('<sl-radio-button>', () => { | |||
| 
 | ||||
|     radio2.click(); | ||||
|     await Promise.all([radio1.updateComplete, radio2.updateComplete]); | ||||
|      | ||||
| 
 | ||||
|     expect(radio1.checked).to.be.true; | ||||
|     expect(radio2.checked).to.be.false; | ||||
|   }); | ||||
|  |  | |||
|  | @ -123,7 +123,7 @@ describe('when submitting a form', () => { | |||
|     const radio = form.querySelectorAll('sl-radio')[1]!; | ||||
|     const submitHandler = sinon.spy((event: SubmitEvent) => { | ||||
|       formData = new FormData(form); | ||||
|        | ||||
| 
 | ||||
|       event.preventDefault(); | ||||
|     }); | ||||
|     let formData: FormData; | ||||
|  | @ -132,7 +132,7 @@ describe('when submitting a form', () => { | |||
|     radio.click(); | ||||
|     button.click(); | ||||
|     await waitUntil(() => submitHandler.calledOnce); | ||||
|      | ||||
| 
 | ||||
|     expect(formData!.get('a')).to.equal('2'); | ||||
|   }); | ||||
| }); | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ describe('<sl-radio>', () => { | |||
|     `);
 | ||||
|     const radio1 = radioGroup.querySelector<SlRadio>('#radio-1')!; | ||||
|     const radio2 = radioGroup.querySelector<SlRadio>('#radio-2')!; | ||||
|      | ||||
| 
 | ||||
|     radio2.click(); | ||||
|     await Promise.all([radio1.updateComplete, radio2.updateComplete]); | ||||
| 
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Burton Smith
						Burton Smith