Add support to remove all shared extensions

This commit is contained in:
Shivam Mathur
2021-08-26 21:29:38 +05:30
parent 4beeea41b4
commit b2d037d560
7 changed files with 71 additions and 29 deletions

View File

@ -127,8 +127,8 @@ describe('Utils tests', () => {
it('checking extensionArray', async () => {
expect(
await utils.extensionArray('a, :b, php_c, php-d, Zend e, :Zend f')
).toEqual(['a', ':b', 'c', 'd', 'e', ':f']);
await utils.extensionArray('a, :b, php_c, none, php-d, Zend e, :Zend f')
).toEqual(['none', 'a', ':b', 'c', 'd', 'e', ':f']);
expect(await utils.extensionArray('')).toEqual([]);
expect(await utils.extensionArray(' ')).toEqual([]);