Browse Source

docs(routes): update comments for mock Switch test component

feat/auto-update
jamaljsr 5 years ago
parent
commit
fd4359082a
  1. 4
      src/__mocks__/react-router-transition.js

4
src/__mocks__/react-router-transition.js

@ -1,7 +1,7 @@
import React from 'react';
// mock the AnimatedSwitch with the normal Switch for testing
// because it raises an error, but works fine in the app
// mock the AnimatedSwitch with the normal Switch
// it raises an error in tests, but works fine in the app
const MockSwitch = props => {
// need to call mapStyles to get proper test coverage
props.mapStyles({});

Loading…
Cancel
Save