enzyme: update

This commit is contained in:
Rico Sta. Cruz 2017-09-14 17:19:13 +08:00
parent a8862a92b8
commit c907827c27
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 8 additions and 0 deletions

View File

@ -1,12 +1,20 @@
---
title: Enzyme
category: React
layout: 2017/sheet
updated: 2017-09-14
weight: -1
---
## ReactWrapper
### ReactWrapper
```js
wrap = shallow(<MyComponent />) // => ReactWrapper (shallow)
```
```js
wrap = mount(<MyComponent />) // => ReactWrapper (full)
```