File tree Expand file tree Collapse file tree 5 files changed +31
-3
lines changed Expand file tree Collapse file tree 5 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -103,4 +103,9 @@ describe('col', async () => {
103
103
const { $refs } = window . app
104
104
expect ( $refs . tag ) . toBeElement ( 'section' )
105
105
} )
106
+
107
+ it ( "should apply '.align-self-*' class with 'align-self' prop" , async ( ) => {
108
+ const { $refs } = window . app
109
+ expect ( $refs . alignSelf ) . toHaveClass ( 'align-self-center' )
110
+ } )
106
111
} )
Original file line number Diff line number Diff line change 1
1
import { loadFixture , testVM } from '../../../tests/utils'
2
2
3
- describe ( 'form-row ' , async ( ) => {
3
+ describe ( 'container ' , async ( ) => {
4
4
beforeEach ( loadFixture ( __dirname , 'container' ) )
5
5
testVM ( )
6
6
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ <h1>Hello Vue!</h1>
36
36
</ div >
37
37
< b-col tag ="section "
38
38
ref ="tag "> </ b-col >
39
+ < b-col align-self ="center " ref ="alignSelf "> </ b-col >
39
40
</ div >
40
41
</ div >
41
42
</ div >
Original file line number Diff line number Diff line change 1
1
< div id ="app ">
2
2
<!-- default -->
3
3
< b-row ref ="default "> default</ b-row >
4
- < br >
5
4
<!-- custom tag prop -->
6
5
< b-row tag ="p " ref ="custom "> custom</ b-row >
7
- < br >
8
6
<!-- no-gutters prop -->
9
7
< b-row no-gutters ref ="noGutters "> no gutters</ b-row >
8
+ <!-- align-v prop -->
9
+ < b-row align-v ="center " ref ="alignV "> align v</ b-row >
10
+ <!-- align-h prop -->
11
+ < b-row align-h ="center " ref ="alignH "> align h</ b-row >
12
+ <!-- align-h prop -->
13
+ < b-row align-content ="center " ref ="alignContent "> align content</ b-row >
10
14
</ div >
Original file line number Diff line number Diff line change @@ -20,6 +20,24 @@ describe('form-row', async () => {
20
20
expect ( $refs . noGutters ) . toHaveClass ( 'no-gutters' )
21
21
} )
22
22
23
+ it ( 'alignV should contain classes' , async ( ) => {
24
+ const { app : { $refs } } = window
25
+ expect ( $refs . alignV ) . toHaveClass ( 'row' )
26
+ expect ( $refs . alignV ) . toHaveClass ( 'align-items-center' )
27
+ } )
28
+
29
+ it ( 'alignH should contain classes' , async ( ) => {
30
+ const { app : { $refs } } = window
31
+ expect ( $refs . alignH ) . toHaveClass ( 'row' )
32
+ expect ( $refs . alignH ) . toHaveClass ( 'justify-content-center' )
33
+ } )
34
+
35
+ it ( 'alignContent should contain classes' , async ( ) => {
36
+ const { app : { $refs } } = window
37
+ expect ( $refs . alignContent ) . toHaveClass ( 'row' )
38
+ expect ( $refs . alignContent ) . toHaveClass ( 'align-content-center' )
39
+ } )
40
+
23
41
it ( 'default should have content' , async ( ) => {
24
42
const { app : { $refs } } = window
25
43
expect ( $refs . default . textContent ) . toContain ( 'default' )
You can’t perform that action at this time.
0 commit comments