Add support for SAPI setup

This commit is contained in:
Shivam Mathur
2020-12-14 08:30:55 +05:30
parent 7e68292070
commit 6e94dfca93
17 changed files with 495 additions and 28 deletions

View File

@ -107,16 +107,16 @@ describe('Utils tests', () => {
await cleanup(script_path);
});
it('checking extensionArray', async () => {
expect(await utils.extensionArray('a, b, php_c, php-d')).toEqual([
it('checking packageArray', async () => {
expect(await utils.packageArray('a, b, php_c, php-d')).toEqual([
'a',
'b',
'c',
'd'
]);
expect(await utils.extensionArray('')).toEqual([]);
expect(await utils.extensionArray(' ')).toEqual([]);
expect(await utils.packageArray('')).toEqual([]);
expect(await utils.packageArray(' ')).toEqual([]);
});
it('checking INIArray', async () => {