@@ -31,74 +31,55 @@ async function mediaMinmaxAfterNestedRun (input, output, opts) {
31
31
expect ( result . warnings ( ) ) . toHaveLength ( 0 )
32
32
}
33
33
34
- it ( 'simple #1. mobile-first ' , async ( ) => {
34
+ it ( '[mf] simple #1' , async ( ) => {
35
35
let input = fs . readFileSync ( './test/s1-mobile.in.css' , 'utf8' )
36
36
let output = fs . readFileSync ( './test/s1-mobile.out.css' , 'utf8' )
37
37
await run ( input , output , { sort : 'mobile-first' } )
38
38
} )
39
39
40
- it ( 'simple #1. desktop-first ' , async ( ) => {
40
+ it ( '[df] simple #1' , async ( ) => {
41
41
let input = fs . readFileSync ( './test/s1-desktop.in.css' , 'utf8' )
42
42
let output = fs . readFileSync ( './test/s1-desktop.out.css' , 'utf8' )
43
43
await run ( input , output , { sort : 'desktop-first' } )
44
44
} )
45
45
46
- it ( 'simple #2. mobile-first ' , async ( ) => {
46
+ it ( '[mf] simple #2' , async ( ) => {
47
47
let input = fs . readFileSync ( './test/s2-mobile.in.css' , 'utf8' )
48
48
let output = fs . readFileSync ( './test/s2-mobile.out.css' , 'utf8' )
49
49
await run ( input , output , { sort : 'mobile-first' } )
50
50
} )
51
51
52
- it ( 'simple #2. desktop-first ' , async ( ) => {
52
+ it ( '[df] simple #2' , async ( ) => {
53
53
let input = fs . readFileSync ( './test/s2-desktop.in.css' , 'utf8' )
54
54
let output = fs . readFileSync ( './test/s2-desktop.out.css' , 'utf8' )
55
55
await run ( input , output , { sort : 'desktop-first' } )
56
56
} )
57
57
58
- it ( 'without dimension #1. mobile-first ' , async ( ) => {
58
+ it ( '[mf] without dimension #1' , async ( ) => {
59
59
let input = fs . readFileSync ( './test/wd1-mobile.in.css' , 'utf8' )
60
60
let output = fs . readFileSync ( './test/wd1-mobile.out.css' , 'utf8' )
61
61
await run ( input , output , { sort : 'mobile-first' } )
62
62
} )
63
63
64
- it ( 'without dimension #1. desktop-first ' , async ( ) => {
64
+ it ( '[df] without dimension #1' , async ( ) => {
65
65
let input = fs . readFileSync ( './test/wd1-desktop.in.css' , 'utf8' )
66
66
let output = fs . readFileSync ( './test/wd1-desktop.out.css' , 'utf8' )
67
67
await run ( input , output , { sort : 'desktop-first' } )
68
68
} )
69
69
70
- it ( 'mixed #1. mobile-first ' , async ( ) => {
70
+ it ( '[mf] mixed #1' , async ( ) => {
71
71
let input = fs . readFileSync ( './test/mixed-mobile.in.css' , 'utf8' )
72
72
let output = fs . readFileSync ( './test/mixed-mobile.out.css' , 'utf8' )
73
73
await run ( input , output , { sort : 'mobile-first' } )
74
74
} )
75
75
76
- it ( 'mixed #1. desktop-first ' , async ( ) => {
76
+ it ( '[df] mixed #1' , async ( ) => {
77
77
let input = fs . readFileSync ( './test/mixed-desktop.in.css' , 'utf8' )
78
78
let output = fs . readFileSync ( './test/mixed-desktop.out.css' , 'utf8' )
79
79
await run ( input , output , { sort : 'desktop-first' } )
80
80
} )
81
81
82
- it ( 'postcss nested' , async ( ) => {
83
- let input = fs . readFileSync ( './test/postcss.nested.in.css' , 'utf8' )
84
- let output = fs . readFileSync ( './test/postcss.nested.out.css' , 'utf8' )
85
- await nestedRun ( input , output )
86
- } )
87
-
88
- it ( 'postcss media minmax -> nested' , async ( ) => {
89
- let input = fs . readFileSync ( './test/postcss.media.minmax.in.css' , 'utf8' )
90
- let output = fs . readFileSync ( './test/postcss.media.minmax.out.css' , 'utf8' )
91
- await mediaMinmaxBeforeNestedRun ( input , output )
92
- } )
93
-
94
- it ( 'postcss nested -> media minmax' , async ( ) => {
95
- let input = fs . readFileSync ( './test/postcss.media.minmax.in.css' , 'utf8' )
96
- let output = fs . readFileSync ( './test/postcss.media.minmax.out.css' , 'utf8' )
97
- await mediaMinmaxAfterNestedRun ( input , output )
98
- } )
99
-
100
-
101
- it ( 'configuration(mixed #1): [mobile first] unitlessMqAlwaysFirst: FALSE' , async ( ) => {
82
+ it ( '[mf] configuration(mixed #1): unitlessMqAlwaysFirst: FALSE' , async ( ) => {
102
83
let input = fs . readFileSync ( './test/configuration/false-mixed-mobile.in.css' , 'utf8' )
103
84
let output = fs . readFileSync ( './test/configuration/false-mixed-mobile.out.css' , 'utf8' )
104
85
@@ -110,8 +91,7 @@ it('configuration(mixed #1): [mobile first] unitlessMqAlwaysFirst: FALSE', async
110
91
await run ( input , output , options )
111
92
} )
112
93
113
-
114
- it ( 'configuration(mixed #1): [mobile first] unitlessMqAlwaysFirst: TRUE' , async ( ) => {
94
+ it ( '[mf] configuration(mixed #1): unitlessMqAlwaysFirst: TRUE' , async ( ) => {
115
95
let input = fs . readFileSync ( './test/configuration/true-mixed-mobile.in.css' , 'utf8' )
116
96
let output = fs . readFileSync ( './test/configuration/true-mixed-mobile.out.css' , 'utf8' )
117
97
@@ -123,8 +103,7 @@ it('configuration(mixed #1): [mobile first] unitlessMqAlwaysFirst: TRUE', async
123
103
await run ( input , output , options )
124
104
} )
125
105
126
-
127
- it ( 'configuration(mixed #2): [desktop first] unitlessMqAlwaysFirst: FALSE' , async ( ) => {
106
+ it ( '[df] configuration(mixed #2): unitlessMqAlwaysFirst: FALSE' , async ( ) => {
128
107
let input = fs . readFileSync ( './test/configuration/false-mixed-desktop.in.css' , 'utf8' )
129
108
let output = fs . readFileSync ( './test/configuration/false-mixed-desktop.out.css' , 'utf8' )
130
109
@@ -137,8 +116,7 @@ it('configuration(mixed #2): [desktop first] unitlessMqAlwaysFirst: FALSE', asyn
137
116
await run ( input , output , options )
138
117
} )
139
118
140
-
141
- it ( 'configuration(mixed #2): [desktop first] unitlessMqAlwaysFirst: TRUE' , async ( ) => {
119
+ it ( '[df] configuration(mixed #2): unitlessMqAlwaysFirst: TRUE' , async ( ) => {
142
120
let input = fs . readFileSync ( './test/configuration/true-mixed-desktop.in.css' , 'utf8' )
143
121
let output = fs . readFileSync ( './test/configuration/true-mixed-desktop.out.css' , 'utf8' )
144
122
@@ -150,3 +128,21 @@ it('configuration(mixed #2): [desktop first] unitlessMqAlwaysFirst: TRUE', async
150
128
}
151
129
await run ( input , output , options )
152
130
} )
131
+
132
+ it ( 'postcss nested' , async ( ) => {
133
+ let input = fs . readFileSync ( './test/postcss.nested.in.css' , 'utf8' )
134
+ let output = fs . readFileSync ( './test/postcss.nested.out.css' , 'utf8' )
135
+ await nestedRun ( input , output )
136
+ } )
137
+
138
+ it ( 'postcss media minmax -> nested' , async ( ) => {
139
+ let input = fs . readFileSync ( './test/postcss.media.minmax.in.css' , 'utf8' )
140
+ let output = fs . readFileSync ( './test/postcss.media.minmax.out.css' , 'utf8' )
141
+ await mediaMinmaxBeforeNestedRun ( input , output )
142
+ } )
143
+
144
+ it ( 'postcss nested -> media minmax' , async ( ) => {
145
+ let input = fs . readFileSync ( './test/postcss.media.minmax.in.css' , 'utf8' )
146
+ let output = fs . readFileSync ( './test/postcss.media.minmax.out.css' , 'utf8' )
147
+ await mediaMinmaxAfterNestedRun ( input , output )
148
+ } )
0 commit comments