test: add helper to spy on prototype functions
test: add helper to spy on prototype functions

PiperOrigin-RevId: 365203966

material-components/material-components-web,material-components/material-components-web,material-components/material-components-web