| @@ -347,4 +347,19 @@ describe('picomatch', () => { |
|
|
| 347 |
347 |
}); |
| 348 |
348 |
}); |
| 349 |
349 |
}); |
|
350 |
+ |
|
351 |
+describe('state', () => { |
|
352 |
+describe('negatedExtglob', () => { |
|
353 |
+it('should return true', () => { |
|
354 |
+assert(picomatch('!(abc)', {}, true).state.negatedExtglob); |
|
355 |
+assert(picomatch('!(abc)**', {}, true).state.negatedExtglob); |
|
356 |
+assert(picomatch('!(abc)/**', {}, true).state.negatedExtglob); |
|
357 |
+}); |
|
358 |
+ |
|
359 |
+it('should return false', () => { |
|
360 |
+assert(!picomatch('(!(abc))', {}, true).state.negatedExtglob); |
|
361 |
+assert(!picomatch('**!(abc)', {}, true).state.negatedExtglob); |
|
362 |
+}); |
|
363 |
+}); |
|
364 |
+}); |
| 350 |
365 |
}); |