terra-slide-panel
Advanced tools
Comparing version 3.45.0 to 3.46.0
@@ -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 @@ |
{ | ||
"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 = ( |
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
75155
821
7