andreypopp / andreypopp/autobind-decorator
Break sinon.spy(Component.prototype, 'method')
Offen
help wanted
PR welcome
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.4k
- Forks
- 65
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.