(callback: (text: any) => void)
| 816 | } |
| 817 | |
| 818 | addText(callback: (text: any) => void): Setting { |
| 819 | const mockText = { |
| 820 | inputEl: document.createElement('input'), |
| 821 | setPlaceholder: (placeholder: string) => mockText, |
| 822 | setValue: (value: string) => mockText, |
| 823 | onChange: (callback: (value: string) => void) => mockText, |
| 824 | setDisabled: (disabled: boolean) => mockText, |
| 825 | }; |
| 826 | callback(mockText); |
| 827 | return this; |
| 828 | } |
| 829 | |
| 830 | addTextArea(callback: (text: any) => void): Setting { |
| 831 | const mockTextArea = { |
no outgoing calls
no test coverage detected