terra-toggle
Advanced tools
Comparing version 3.61.0 to 3.62.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 3.62.0 - (February 15, 2024) | ||
* Changed | ||
* Minor dependency version bump. | ||
## 3.61.0 - (November 13, 2023) | ||
@@ -7,0 +12,0 @@ |
{ | ||
"name": "terra-toggle", | ||
"version": "3.61.0", | ||
"version": "3.62.0", | ||
"description": "Toggle component that transitions content in and out.", | ||
@@ -28,3 +28,3 @@ "author": "Cerner Corporation", | ||
"react-animate-height": "^2.0.1", | ||
"terra-icon": "^3.59.0" | ||
"terra-icon": "^3.60.0" | ||
}, | ||
@@ -48,3 +48,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1be8c98fe2eeec64ef7a7fa457dd708da88e5170" | ||
"gitHead": "31ec38baf909fed741b41a204f7fa28884ab327e" | ||
} |
@@ -7,3 +7,3 @@ import React from 'react'; | ||
it('should render a default toggle', () => { | ||
const toggle = render(<Toggle>Test</Toggle>); | ||
const toggle = enzyme.render(<Toggle>Test</Toggle>); | ||
expect(toggle).toMatchSnapshot(); | ||
@@ -13,3 +13,3 @@ }); | ||
it('should render an animated toggle', () => { | ||
const toggle = render(<Toggle isAnimated>Test</Toggle>); | ||
const toggle = enzyme.render(<Toggle isAnimated>Test</Toggle>); | ||
expect(toggle).toMatchSnapshot(); | ||
@@ -19,3 +19,3 @@ }); | ||
it('should render an open toggle', () => { | ||
const toggle = render(<Toggle isOpen>Test</Toggle>); | ||
const toggle = enzyme.render(<Toggle isOpen>Test</Toggle>); | ||
expect(toggle).toMatchSnapshot(); | ||
@@ -26,3 +26,3 @@ }); | ||
it('should have all props set correctly', () => { | ||
const toggle = shallow(<Toggle isAnimated isOpen>All props</Toggle>); | ||
const toggle = enzyme.shallow(<Toggle isAnimated isOpen>All props</Toggle>); | ||
expect(toggle).toMatchSnapshot(); | ||
@@ -33,3 +33,3 @@ }); | ||
it('should merge classes passed in with attributes', () => { | ||
const toggle = shallow(<Toggle className="TestClass">Test</Toggle>); | ||
const toggle = enzyme.shallow(<Toggle className="TestClass">Test</Toggle>); | ||
expect(toggle.prop('className')).toContain('TestClass'); | ||
@@ -39,3 +39,3 @@ }); | ||
it('should merge ids passed in with attributes', () => { | ||
const toggle = shallow(<Toggle id="TestId">Test</Toggle>); | ||
const toggle = enzyme.shallow(<Toggle id="TestId">Test</Toggle>); | ||
expect(toggle.prop('id')).toContain('TestId'); | ||
@@ -45,3 +45,3 @@ }); | ||
it('should append data passed in with attributes', () => { | ||
const toggle = shallow(<Toggle data-terra-text-mock="MockData">Test</Toggle>); | ||
const toggle = enzyme.shallow(<Toggle data-terra-text-mock="MockData">Test</Toggle>); | ||
expect(toggle.prop('data-terra-text-mock')).toContain('MockData'); | ||
@@ -52,3 +52,3 @@ }); | ||
/* eslint-disable react/forbid-component-props */ | ||
const toggle = shallow(<Toggle style={{ height: '100px' }}>Test</Toggle>); | ||
const toggle = enzyme.shallow(<Toggle style={{ height: '100px' }}>Test</Toggle>); | ||
expect(toggle.prop('style')).toEqual({ height: '100px' }); | ||
@@ -61,3 +61,3 @@ /* eslint-disable react/forbid-component-props */ | ||
try { | ||
shallow(<Toggle>Test</Toggle>); | ||
enzyme.shallow(<Toggle>Test</Toggle>); | ||
} catch (e) { | ||
@@ -64,0 +64,0 @@ expect(e.message).toContain('The prop `children` is marked as required'); |
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
35972
Updatedterra-icon@^3.60.0