andreypopp / andreypopp/autobind-decorator

Break sinon.spy(Component.prototype, 'method')

Đang mở
#47 8 bình luận 1 reaction 0 người được giao Xem trên GitHub
help wanted PR welcome
Ngôn ngữ chính
JavaScript
Star
1.4k
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.