@@ -16,21 +16,21 @@ describe('modal', () => {
16
16
await wrapper . vm . $nextTick ( )
17
17
18
18
// This outer DIV will go away once we migrate to Portal-Vue
19
- // As all modals will be lazy
19
+ // as all modals will be lazy
20
20
expect ( wrapper . is ( 'div' ) ) . toBe ( true )
21
21
expect ( wrapper . classes ( ) . length ) . toBe ( 0 )
22
22
23
- // Main outer wraper (has z-index, etc)... the stacker div
23
+ // Main outer wrapper (has z-index, etc)... the stacker div
24
24
const $outer = createWrapper ( wrapper . element . firstElementChild )
25
25
expect ( $outer . is ( 'div' ) ) . toBe ( true )
26
26
expect ( $outer . classes ( ) . length ) . toBe ( 0 )
27
27
expect ( $outer . element . style . position ) . toEqual ( 'absolute' )
28
- expect ( $outer . element . style . zIndex ) . toEqual ( '2000 ' )
28
+ expect ( $outer . element . style . zIndex ) . toEqual ( '1040 ' )
29
29
30
30
// Should not have a backdrop
31
31
expect ( $outer . find ( 'div.modal-backdrop' ) . exists ( ) ) . toBe ( false )
32
32
33
- // Main modal wraper
33
+ // Main modal wrapper
34
34
const $modal = $outer . find ( 'div.modal' )
35
35
expect ( $modal . exists ( ) ) . toBe ( true )
36
36
expect ( $modal . attributes ( 'id' ) ) . toBeDefined ( )
@@ -92,18 +92,18 @@ describe('modal', () => {
92
92
await waitAF ( )
93
93
94
94
// This outer DIV will go away once we migrate to Portal-Vue
95
- // As all modals will be lazy
95
+ // as all modals will be lazy
96
96
expect ( wrapper . is ( 'div' ) ) . toBe ( true )
97
97
expect ( wrapper . classes ( ) . length ) . toBe ( 0 )
98
98
99
- // Main outer wraper (has z-index, etc)... the stacker div
99
+ // Main outer wrapper (has z-index, etc)... the stacker div
100
100
const $outer = createWrapper ( wrapper . element . firstElementChild )
101
101
expect ( $outer . is ( 'div' ) ) . toBe ( true )
102
102
expect ( $outer . classes ( ) . length ) . toBe ( 0 )
103
103
expect ( $outer . element . style . position ) . toEqual ( 'absolute' )
104
104
expect ( $outer . element . style . zIndex ) . toEqual ( '2000' )
105
105
106
- // Main modal wraper
106
+ // Main modal wrapper
107
107
const $modal = $outer . find ( 'div.modal' )
108
108
expect ( $modal . exists ( ) ) . toBe ( true )
109
109
expect ( $modal . attributes ( 'id' ) ) . toBeDefined ( )
@@ -139,7 +139,7 @@ describe('modal', () => {
139
139
attachToDocument : true ,
140
140
stubs : {
141
141
// Disable the use of transitionStub fake transition
142
- // AS it doesn't run transition hooks
142
+ // as it doesn't run transition hooks
143
143
transition : false
144
144
} ,
145
145
propsData : {
@@ -165,18 +165,18 @@ describe('modal', () => {
165
165
// expect(body.getAttribute('data-modal-open-count')).toEqual('1')
166
166
167
167
// This outer DIV will go away once we migrate to Portal-Vue
168
- // As all modals will be lazy
168
+ // as all modals will be lazy
169
169
expect ( wrapper . is ( 'div' ) ) . toBe ( true )
170
170
expect ( wrapper . classes ( ) . length ) . toBe ( 0 )
171
171
172
- // Main outer wraper (has z-index, etc)... the stacker div
172
+ // Main outer wrapper (has z-index, etc)... the stacker div
173
173
const $outer = createWrapper ( wrapper . element . firstElementChild )
174
174
expect ( $outer . is ( 'div' ) ) . toBe ( true )
175
175
expect ( $outer . classes ( ) . length ) . toBe ( 0 )
176
176
expect ( $outer . element . style . position ) . toEqual ( 'absolute' )
177
177
expect ( $outer . element . style . zIndex ) . toEqual ( '2000' )
178
178
179
- // Main modal wraper
179
+ // Main modal wrapper
180
180
const $modal = $outer . find ( 'div.modal' )
181
181
expect ( $modal . exists ( ) ) . toBe ( true )
182
182
expect ( $modal . attributes ( 'aria-hidden' ) ) . not . toBeDefined ( )
@@ -225,9 +225,7 @@ describe('modal', () => {
225
225
} )
226
226
227
227
describe ( 'default button content, classes and attributes' , ( ) => {
228
- //
229
- // We may want to move these tests into individual files for managability
230
- //
228
+ // We may want to move these tests into individual files for manageability
231
229
it ( 'default footer ok and cancel buttons' , async ( ) => {
232
230
const wrapper = mount ( Modal )
233
231
expect ( wrapper ) . toBeDefined ( )
@@ -568,7 +566,7 @@ describe('modal', () => {
568
566
569
567
expect ( $modal . element . style . display ) . toEqual ( 'none' )
570
568
571
- // Try and open modal via bv::show::modal
569
+ // Try and open modal via ` bv::show::modal`
572
570
wrapper . vm . $root . $emit ( 'bv::show::modal' , 'test' )
573
571
574
572
await wrapper . vm . $nextTick ( )
@@ -579,7 +577,7 @@ describe('modal', () => {
579
577
// Modal should now be open
580
578
expect ( $modal . element . style . display ) . toEqual ( '' )
581
579
582
- // Try and close modal via bv::hide::modal
580
+ // Try and close modal via ` bv::hide::modal`
583
581
wrapper . vm . $root . $emit ( 'bv::hide::modal' , 'test' )
584
582
585
583
await wrapper . vm . $nextTick ( )
0 commit comments