terra-status
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -39,3 +39,3 @@ 'use strict'; | ||
*/ | ||
color: _propTypes2.default.string.isRequired | ||
color: _propTypes2.default.string | ||
}; | ||
@@ -42,0 +42,0 @@ |
{ | ||
"name": "terra-status", | ||
"main": "lib/Status.js", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "The status component provides a customizable color indictor to signify a specific condition.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -54,1 +54,8 @@ /* eslint-disable import/no-extraneous-dependencies */ | ||
}); | ||
// No Color Provided | ||
it('should render status with no style', () => { | ||
const statusNoColor = <Status>{simpleText}</Status>; | ||
const wrapper = render(statusNoColor); | ||
expect(wrapper).toMatchSnapshot(); | ||
}); |
@@ -36,2 +36,7 @@ /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ | ||
}, | ||
'Displays status with no style': (browser) => { | ||
browser | ||
.url(`http://localhost:${browser.globals.webpackDevServerPort}/#/tests/status-tests/no-color`) | ||
.waitForElementVisible('.terra-Status', 1000); | ||
}, | ||
}; |
@@ -10,2 +10,3 @@ /* eslint-disable import/no-extraneous-dependencies */ | ||
import StatusImage from './StatusImage'; | ||
import StatusNoColor from './StatusNoColor'; | ||
@@ -19,2 +20,3 @@ const routes = ( | ||
<Route path="/tests/status-tests/image" component={StatusImage} /> | ||
<Route path="/tests/status-tests/no-color" component={StatusNoColor} /> | ||
</div> | ||
@@ -21,0 +23,0 @@ ); |
@@ -13,2 +13,3 @@ /* eslint-disable import/no-extraneous-dependencies */ | ||
<li><Link to="/tests/status-tests/image">Status Image</Link></li> | ||
<li><Link to="/tests/status-tests/no-color">Status No Color</Link></li> | ||
</ul> | ||
@@ -15,0 +16,0 @@ </div> |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
217
27410
19
1