@@ -91,7 +91,7 @@ test('constants with MOUNT starting with c:', async function (t) {
91
91
}
92
92
} )
93
93
94
- test ( 'constants with MOUNT starting with file:' , { skip : isWindows } , async function ( t ) {
94
+ test ( 'constants with MOUNT starting with file:' , async function ( t ) {
95
95
t . plan ( 1 )
96
96
97
97
const rig = ( ) => {
@@ -113,11 +113,15 @@ test('constants with MOUNT starting with file:', { skip: isWindows }, async func
113
113
const { teardown } = rig ( )
114
114
t . teardown ( teardown )
115
115
116
+ if ( isWindows ) {
117
+ t . exception ( ( ) => require ( '../constants' ) )
118
+ return
119
+ }
116
120
const constants = require ( '../constants' )
117
121
t . ok ( constants . MOUNT === 'file:///custom/mount' )
118
122
} )
119
123
120
- test ( 'constants with MOUNT starting with ./' , { skip : isWindows } , async function ( t ) {
124
+ test ( 'constants with MOUNT starting with ./' , async function ( t ) {
121
125
t . plan ( 1 )
122
126
123
127
const rig = ( ) => {
@@ -139,11 +143,15 @@ test('constants with MOUNT starting with ./', { skip: isWindows }, async functio
139
143
const { teardown } = rig ( )
140
144
t . teardown ( teardown )
141
145
146
+ if ( isWindows ) {
147
+ t . exception ( ( ) => require ( '../constants' ) )
148
+ return
149
+ }
142
150
const constants = require ( '../constants' )
143
151
t . ok ( constants . MOUNT === 'file:///custom/mount' )
144
152
} )
145
153
146
- test ( 'constants with MOUNT starting with ../' , { skip : isWindows } , async function ( t ) {
154
+ test ( 'constants with MOUNT starting with ../' , async function ( t ) {
147
155
t . plan ( 1 )
148
156
149
157
const rig = ( ) => {
@@ -165,11 +173,15 @@ test('constants with MOUNT starting with ../', { skip: isWindows }, async functi
165
173
const { teardown } = rig ( )
166
174
t . teardown ( teardown )
167
175
176
+ if ( isWindows ) {
177
+ t . exception ( ( ) => require ( '../constants' ) )
178
+ return
179
+ }
168
180
const constants = require ( '../constants' )
169
181
t . ok ( constants . MOUNT === 'file:///custom/mount' )
170
182
} )
171
183
172
- test ( 'constants with MOUNT starting with /' , { skip : isWindows } , async function ( t ) {
184
+ test ( 'constants with MOUNT starting with /' , async function ( t ) {
173
185
t . plan ( 1 )
174
186
175
187
const rig = ( ) => {
@@ -191,6 +203,11 @@ test('constants with MOUNT starting with /', { skip: isWindows }, async function
191
203
const { teardown } = rig ( )
192
204
t . teardown ( teardown )
193
205
206
+ if ( isWindows ) {
207
+ t . exception ( ( ) => require ( '../constants' ) )
208
+ return
209
+ }
210
+
194
211
const constants = require ( '../constants' )
195
212
t . ok ( constants . MOUNT === 'file:///custom/mount' )
196
213
} )
0 commit comments