MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / newToggle

Function newToggle

core/src/components/toggle/test/toggle.spec.ts:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 });
10
11 const newToggle = async (): Promise<Toggle> => {
12 const { rootInstance } = await newSpecPage({
13 components: [Toggle],
14 html: `<ion-toggle></ion-toggle>`,
15 });
16 return rootInstance;
17 };
18
19 describe('enableOnOffLabels', () => {
20 it('should disable on/off labels when setting to false on component', async () => {

Callers 1

toggle.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected