Skip to content

Commit ee0ae0d

Browse files
author
Michael Laktionov
committed
add testing clause to readme
1 parent d4f0bb4 commit ee0ae0d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ App = withOrientationChange(App)
199199
export { App }
200200
```
201201

202+
### Testing
203+
204+
```js
205+
import * as rdd from 'react-device-detect';
206+
207+
rdd.isMobile = true;
208+
209+
// use in tests
210+
211+
```
212+
202213
## License
203214

204215
MIT

0 commit comments

Comments
 (0)