@playpilot/tpi 6.1.1-beta.1 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -84,26 +84,17 @@ describe('Modal.svelte', () => {
|
|
|
84
84
|
expect(onscroll).toHaveBeenCalled()
|
|
85
85
|
})
|
|
86
86
|
|
|
87
|
-
it('Should set
|
|
87
|
+
it('Should set class on mount', () => {
|
|
88
88
|
render(Modal, { children })
|
|
89
89
|
|
|
90
|
-
expect(document.documentElement.
|
|
90
|
+
expect(document.documentElement.classList).toContain('playpilot-modal-open')
|
|
91
91
|
})
|
|
92
92
|
|
|
93
|
-
it('Should remove
|
|
93
|
+
it('Should remove class when component is unmounted', () => {
|
|
94
94
|
const { unmount } = render(Modal, { children })
|
|
95
95
|
unmount()
|
|
96
96
|
|
|
97
|
-
expect(document.documentElement.
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
it('Should use overflow as it was before the component was mounted when component is unmounted', () => {
|
|
101
|
-
document.documentElement.style.overflowY = 'some-value'
|
|
102
|
-
|
|
103
|
-
const { unmount } = render(Modal, { children })
|
|
104
|
-
unmount()
|
|
105
|
-
|
|
106
|
-
expect(document.documentElement.style.overflowY).toBe('some-value')
|
|
97
|
+
expect(document.documentElement.classList).not.toContain('playpilot-modal-open')
|
|
107
98
|
})
|
|
108
99
|
|
|
109
100
|
it('Should not have tall class by default', () => {
|