@@ -10,7 +10,8 @@ describe('CopyFiles L0 Suite', function () {
10
10
11
11
after ( ( ) => { } ) ;
12
12
13
- it ( 'copy files from srcdir to destdir' , ( done : Mocha . Done ) => {
13
+ it ( 'copy files from srcdir to destdir' , ( done : MochaDone ) => {
14
+ this . timeout ( 1000 ) ;
14
15
15
16
let testPath = path . join ( __dirname , 'L0copyAllFiles.js' ) ;
16
17
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -49,7 +50,8 @@ describe('CopyFiles L0 Suite', function () {
49
50
done ( ) ;
50
51
} ) ;
51
52
52
- it ( 'copy files from srcdir to destdir with brackets in src path' , ( done : Mocha . Done ) => {
53
+ it ( 'copy files from srcdir to destdir with brackets in src path' , ( done : MochaDone ) => {
54
+ this . timeout ( 1000 ) ;
53
55
54
56
let testPath = path . join ( __dirname , 'L0copyAllFilesWithBracketsInSrcPath.js' ) ;
55
57
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -88,7 +90,8 @@ describe('CopyFiles L0 Suite', function () {
88
90
done ( ) ;
89
91
} ) ;
90
92
91
- it ( 'copy files and subtract based on exclude pattern' , ( done : Mocha . Done ) => {
93
+ it ( 'copy files and subtract based on exclude pattern' , ( done : MochaDone ) => {
94
+ this . timeout ( 1000 ) ;
92
95
93
96
let testPath = path . join ( __dirname , 'L0copySubtractExclude.js' ) ;
94
97
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -118,7 +121,8 @@ describe('CopyFiles L0 Suite', function () {
118
121
done ( ) ;
119
122
} ) ;
120
123
121
- it ( 'fails if Contents not set' , ( done : Mocha . Done ) => {
124
+ it ( 'fails if Contents not set' , ( done : MochaDone ) => {
125
+ this . timeout ( 1000 ) ;
122
126
123
127
let testPath = path . join ( __dirname , 'L0failsIfContentsNotSet.js' ) ;
124
128
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -129,7 +133,8 @@ describe('CopyFiles L0 Suite', function () {
129
133
done ( ) ;
130
134
} ) ;
131
135
132
- it ( 'fails if SourceFolder not set' , ( done : Mocha . Done ) => {
136
+ it ( 'fails if SourceFolder not set' , ( done : MochaDone ) => {
137
+ this . timeout ( 1000 ) ;
133
138
134
139
let testPath = path . join ( __dirname , 'L0failsIfSourceFolderNotSet.js' ) ;
135
140
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -140,7 +145,8 @@ describe('CopyFiles L0 Suite', function () {
140
145
done ( ) ;
141
146
} ) ;
142
147
143
- it ( 'fails if TargetFolder not set' , ( done : Mocha . Done ) => {
148
+ it ( 'fails if TargetFolder not set' , ( done : MochaDone ) => {
149
+ this . timeout ( 1000 ) ;
144
150
145
151
let testPath = path . join ( __dirname , 'L0failsIfTargetFolderNotSet.js' ) ;
146
152
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -151,7 +157,8 @@ describe('CopyFiles L0 Suite', function () {
151
157
done ( ) ;
152
158
} ) ;
153
159
154
- it ( 'fails if SourceFolder not found' , ( done : Mocha . Done ) => {
160
+ it ( 'fails if SourceFolder not found' , ( done : MochaDone ) => {
161
+ this . timeout ( 1000 ) ;
155
162
156
163
let testPath = path . join ( __dirname , 'L0failsIfSourceFolderNotFound.js' ) ;
157
164
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -162,7 +169,8 @@ describe('CopyFiles L0 Suite', function () {
162
169
done ( ) ;
163
170
} ) ;
164
171
165
- it ( 'fails if target file is a directory' , ( done : Mocha . Done ) => {
172
+ it ( 'fails if target file is a directory' , ( done : MochaDone ) => {
173
+ this . timeout ( 1000 ) ;
166
174
167
175
let testPath = path . join ( __dirname , 'L0failsIfTargetFileIsDir.js' ) ;
168
176
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -173,7 +181,8 @@ describe('CopyFiles L0 Suite', function () {
173
181
done ( ) ;
174
182
} ) ;
175
183
176
- it ( 'skips if exists' , ( done : Mocha . Done ) => {
184
+ it ( 'skips if exists' , ( done : MochaDone ) => {
185
+ this . timeout ( 1000 ) ;
177
186
178
187
let testPath = path . join ( __dirname , 'L0skipsIfExists.js' ) ;
179
188
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -197,7 +206,8 @@ describe('CopyFiles L0 Suite', function () {
197
206
done ( ) ;
198
207
} ) ;
199
208
200
- it ( 'overwrites if specified' , ( done : Mocha . Done ) => {
209
+ it ( 'overwrites if specified' , ( done : MochaDone ) => {
210
+ this . timeout ( 1000 ) ;
201
211
202
212
let testPath = path . join ( __dirname , 'L0overwritesIfSpecified.js' ) ;
203
213
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -221,7 +231,8 @@ describe('CopyFiles L0 Suite', function () {
221
231
done ( ) ;
222
232
} ) ;
223
233
224
- it ( 'preserves timestamp if specified' , ( done : Mocha . Done ) => {
234
+ it ( 'preserves timestamp if specified' , ( done : MochaDone ) => {
235
+ this . timeout ( 1000 ) ;
225
236
226
237
let testPath = path . join ( __dirname , 'L0preservesTimestampIfSpecified.js' ) ;
227
238
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -248,7 +259,8 @@ describe('CopyFiles L0 Suite', function () {
248
259
done ( ) ;
249
260
} ) ;
250
261
251
- it ( 'cleans if specified' , ( done : Mocha . Done ) => {
262
+ it ( 'cleans if specified' , ( done : MochaDone ) => {
263
+ this . timeout ( 1000 ) ;
252
264
253
265
let testPath = path . join ( __dirname , 'L0cleansIfSpecified.js' ) ;
254
266
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -278,7 +290,8 @@ describe('CopyFiles L0 Suite', function () {
278
290
done ( ) ;
279
291
} ) ;
280
292
281
- it ( 'cleans if specified and target is file' , ( done : Mocha . Done ) => {
293
+ it ( 'cleans if specified and target is file' , ( done : MochaDone ) => {
294
+ this . timeout ( 1000 ) ;
282
295
283
296
let testPath = path . join ( __dirname , 'L0cleansIfSpecifiedAndTargetIsFile.js' ) ;
284
297
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
@@ -305,7 +318,9 @@ describe('CopyFiles L0 Suite', function () {
305
318
done ( ) ;
306
319
} ) ;
307
320
308
- it ( 'roots patterns' , ( done : Mocha . Done ) => {
321
+ it ( 'roots patterns' , ( done : MochaDone ) => {
322
+ this . timeout ( 1000 ) ;
323
+
309
324
let testPath = path . join ( __dirname , 'L0rootsPatterns.js' ) ;
310
325
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
311
326
runner . run ( ) ;
@@ -325,7 +340,7 @@ describe('CopyFiles L0 Suite', function () {
325
340
done ( ) ;
326
341
} ) ;
327
342
328
- it ( 'ignores errors during target folder creation if ignoreMakeDirErrors is true' , ( done : Mocha . Done ) => {
343
+ it ( 'ignores errors during target folder creation if ignoreMakeDirErrors is true' , ( done : MochaDone ) => {
329
344
let testPath = path . join ( __dirname , 'L0IgnoresMakeDirError.js' ) ;
330
345
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
331
346
runner . run ( ) ;
@@ -343,7 +358,7 @@ describe('CopyFiles L0 Suite', function () {
343
358
done ( ) ;
344
359
} ) ;
345
360
346
- it ( 'fails if there are errors during target folder creation if ignoreMakeDirErrors is false' , ( done : Mocha . Done ) => {
361
+ it ( 'fails if there are errors during target folder creation if ignoreMakeDirErrors is false' , ( done : MochaDone ) => {
347
362
let testPath = path . join ( __dirname , 'L0FailsIfThereIsMkdirError.js' ) ;
348
363
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
349
364
runner . run ( ) ;
@@ -355,7 +370,9 @@ describe('CopyFiles L0 Suite', function () {
355
370
} ) ;
356
371
357
372
if ( process . platform == 'win32' ) {
358
- it ( 'overwrites readonly' , ( done : Mocha . Done ) => {
373
+ it ( 'overwrites readonly' , ( done : MochaDone ) => {
374
+ this . timeout ( 1000 ) ;
375
+
359
376
let testPath = path . join ( __dirname , 'L0overwritesReadonly.js' ) ;
360
377
let runner : mocktest . MockTestRunner = new mocktest . MockTestRunner ( testPath ) ;
361
378
runner . run ( ) ;
0 commit comments