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

terra-slide-panel

Package Overview
Dependencies
Maintainers
7
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-slide-panel - npm Package Compare versions

Comparing version 3.45.0 to 3.46.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 3.46.0 - (August 31, 2023)
* Changed
* Minor dependency version bump
## 3.45.0 - (August 2, 2023)

@@ -7,0 +12,0 @@

4

package.json
{
"name": "terra-slide-panel",
"main": "lib/SlidePanel.js",
"version": "3.45.0",
"version": "3.46.0",
"description": "The Terra SlidePanel component is a progressive disclosure mechanism that allows additional content to be shown and hidden in a variety of ways.",

@@ -50,3 +50,3 @@ "repository": {

},
"gitHead": "49d84b2a2b7c5563bd9438d0e185ed0c67f8c769"
"gitHead": "6a8f615f94681015642d981c679dadf167b25bbc"
}

@@ -6,8 +6,16 @@ import React from 'react';

import { IntlProvider } from 'react-intl';
import { v4 as uuidv4 } from 'uuid';
import SlidePanel from '../../src/SlidePanel';
import translationsFile from '../../translations/en.json';
jest.mock('uuid', () => ({ v4: () => '00000000-0000-0000-0000-000000000000' }));
describe('When a SlidePanel is rendered', () => {
let mockSpyUuid;
beforeAll(() => {
mockSpyUuid = jest.spyOn(uuidv4, 'v4').mockReturnValue('00000000-0000-0000-0000-000000000000');
});
describe('When a SlidePanel is rendered', () => {
afterAll(() => {
mockSpyUuid.mockRestore();
});
it('should render a default SlidePanel with no props', () => {

@@ -178,2 +186,11 @@ const slidePanel = <SlidePanel />;

describe('When custom props are used', () => {
let mockSpyUuid;
beforeAll(() => {
mockSpyUuid = jest.spyOn(uuidv4, 'v4').mockReturnValue('00000000-0000-0000-0000-000000000000');
});
afterAll(() => {
mockSpyUuid.mockRestore();
});
it('should override user provided attributes that aren\'t className', () => {

@@ -180,0 +197,0 @@ const slidePanel = (

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