biz-a-cli 2.3.23 → 2.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/app.js +2 -0
- package/envs/env.js +2 -2
- package/package.json +1 -1
- package/readme.md +3 -4
- package/tests/app.test.js +11 -0
package/bin/app.js
CHANGED
package/envs/env.js
CHANGED
|
@@ -5,6 +5,6 @@ export const env = {
|
|
|
5
5
|
CDM_MONGO_LINK: 'mongodb+srv://imm_cdm:' +
|
|
6
6
|
encodeURIComponent('imm@2019') + '@imm-cdm.ohcqt.mongodb.net/?retryWrites=true&w=majority',
|
|
7
7
|
COMPANY_REGISTER: 'companyregister',
|
|
8
|
-
|
|
9
|
-
BIZA_SERVER_LINK: 'http://localhost:3000'
|
|
8
|
+
BIZA_SERVER_LINK: 'https://biz-a.herokuapp.com'
|
|
9
|
+
//BIZA_SERVER_LINK: 'http://localhost:3000'
|
|
10
10
|
};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -25,9 +25,8 @@
|
|
|
25
25
|
Example:
|
|
26
26
|
BizA Add-s https://my.domain.com -i 2 -d “c:\biza templates\imamatek”
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
BizA Add --help
|
|
28
|
+
> [!TIP]
|
|
29
|
+
> BizA Add --help
|
|
31
30
|
|
|
32
31
|
|
|
33
32
|
|
|
@@ -57,7 +56,7 @@
|
|
|
57
56
|
BizA Remove -s https://my.domain.com -i 2 -n “imamatek”
|
|
58
57
|
|
|
59
58
|
> [!TIP]
|
|
60
|
-
>
|
|
59
|
+
> BizA Remove --help
|
|
61
60
|
|
|
62
61
|
|
|
63
62
|
|
package/tests/app.test.js
CHANGED
|
@@ -333,6 +333,17 @@ describe('Biz-A Apps CLI', ()=>{
|
|
|
333
333
|
expectedFn()
|
|
334
334
|
})
|
|
335
335
|
|
|
336
|
+
it.only('Shall not allow empty app', async ()=>{
|
|
337
|
+
mockValidTemplates({})
|
|
338
|
+
mockIssuerKeyResponse()
|
|
339
|
+
await runCommand('add', '-s', 'https://a.b.c', '-p', '1205', '-i', '2', '-d', appFolderName, "-v")
|
|
340
|
+
|
|
341
|
+
expect(logSpy.mock.calls.length).toBe(0)
|
|
342
|
+
|
|
343
|
+
expect(errorSpy.mock.calls.length).toBe(1)
|
|
344
|
+
expect(errorSpy.mock.calls[0][0]).toBe('Nothing to upload. Please recheck your app folder.')
|
|
345
|
+
})
|
|
346
|
+
|
|
336
347
|
})
|
|
337
348
|
|
|
338
349
|
describe('Remove App', ()=>{
|