enzyme-theme-utils
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "enzyme-theme-utils", | ||
"main": "dist/enzyme-theme-utils.js", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Enzyme Theme Utilities", | ||
@@ -46,3 +46,3 @@ "scripts": { | ||
"peerDependencies": { | ||
"styled-components": "2.x.x", | ||
"styled-components": ">=2.0.0", | ||
"react": ">=15.2.0", | ||
@@ -49,0 +49,0 @@ "enzyme": ">=3.1.0" |
@@ -13,2 +13,30 @@ | ||
### shallowWithTheme | ||
```jsx | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { shallowWithTheme } from 'enzyme-theme-utils' | ||
const someTheme = { | ||
colors: { | ||
red: 'red', | ||
yellow: 'yellow' | ||
} | ||
} | ||
describe('some themed component', () => { | ||
it('can be shallow rendered', () => { | ||
const test = shallowWithTheme( | ||
<SomeComponent/>, | ||
someTheme | ||
) | ||
// Assertions | ||
}) | ||
}) | ||
``` | ||
### mountWithTheme | ||
@@ -15,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14375
71