andreypopp / andreypopp/autobind-decorator
Break sinon.spy(Component.prototype, 'method')
Aperta
help wanted
PR welcome
- Lingua principale
- JavaScript
- Stelle
- 1.4k
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
When using '@autobind' on a component, then in tests `sinon.spy(Component.prototype, 'someMethod')` will yield an error:
```
TypeError: Attempted to wrap undefined property undefined as function
...
```
Sorry, currently I can't provide more detail, but I'm sure `@autobind` is the only variable between success/error in tests.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.