@storybook/addon-backgrounds
Advanced tools
Comparing version 3.2.15 to 3.2.16
{ | ||
"name": "@storybook/addon-backgrounds", | ||
"version": "3.2.15", | ||
"version": "3.2.16", | ||
"description": "A storybook addon to show different backgrounds for your preview", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -30,3 +30,3 @@ import React from 'react'; | ||
expect(backgroundPanel.state().backgrounds.length).toBe(0); | ||
expect(backgroundPanel.state().backgrounds).toHaveLength(0); | ||
}); | ||
@@ -76,3 +76,3 @@ | ||
const headings = backgroundPanel.find('h4'); | ||
expect(headings.length).toBe(8); | ||
expect(headings).toHaveLength(8); | ||
}); | ||
@@ -95,3 +95,3 @@ | ||
const headings = backgroundPanel.find('h4'); | ||
expect(headings.length).toBe(8); | ||
expect(headings).toHaveLength(8); | ||
}); | ||
@@ -98,0 +98,0 @@ |
@@ -34,3 +34,3 @@ import React from 'react'; | ||
expect(backgroundDecorator.html().match(/background:transparent/gim).length).toBe(1); | ||
expect(backgroundDecorator.html().match(/background:transparent/gim)).toHaveLength(1); | ||
}); | ||
@@ -91,4 +91,4 @@ | ||
backgroundDecorator.setProps({ randomProp: true }); | ||
expect(story.mock.calls.length).toBe(1); | ||
expect(story.mock.calls).toHaveLength(1); | ||
}); | ||
}); |
@@ -20,3 +20,3 @@ import React from 'react'; | ||
expect(markup.match(/foo/gim).length).toBe(1); | ||
expect(markup.match(/foo/gim)).toHaveLength(1); | ||
}); | ||
@@ -29,4 +29,4 @@ | ||
expect(markup.match(/background:bar/gim).length).toBe(1); | ||
expect(markup.match(/bar/gim).length).toBe(2); | ||
expect(markup.match(/background:bar/gim)).toHaveLength(1); | ||
expect(markup.match(/bar/gim)).toHaveLength(2); | ||
}); | ||
@@ -33,0 +33,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33836
0