Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enzyme-theme-utils

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enzyme-theme-utils - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc