Skip to content

Commit

Permalink
add testing clause to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Laktionov committed Jun 15, 2020
1 parent d4f0bb4 commit ee0ae0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ App = withOrientationChange(App)
export { App }
```

### Testing

```js
import * as rdd from 'react-device-detect';

rdd.isMobile = true;

// use in tests

```

## License

MIT

0 comments on commit ee0ae0d

Please sign in to comment.