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

terra-toggle

Package Overview
Dependencies
Maintainers
7
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-toggle - npm Package Compare versions

Comparing version 3.61.0 to 3.62.0

5

CHANGELOG.md

@@ -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 @@

6

package.json
{
"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');

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