Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(radio): set default radio value if undefined (#20329)
- Loading branch information
1 parent
7877ea0
commit eb57723
Showing
3 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Radio } from '../radio.tsx'; | ||
|
||
describe('ion-radio', () => { | ||
it('should set a default value', async () => { | ||
const radio = new Radio(); | ||
|
||
await radio.connectedCallback(); | ||
|
||
expect(radio.value).toEqual('ion-rb-0'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters