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 CHANGED
@@ -258,6 +258,8 @@ yargs(process.argv.slice(2))
258
258
  } else {
259
259
  console.error(res.data.error)
260
260
  }
261
+ } else {
262
+ console.error('Nothing to upload. Please recheck your app folder.')
261
263
  }
262
264
  } catch (e) {
263
265
  console.error(e.response?.data ? e.response.data : e)
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
- // BIZA_SERVER_LINK: 'https://biz-a.herokuapp.com'
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "biz-a-cli",
3
3
  "nameDev": "biz-a-cli-dev",
4
- "version": "2.3.23",
4
+ "version": "2.3.25",
5
5
  "versionDev": "0.0.30",
6
6
  "description": "",
7
7
  "main": "bin/index.js",
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
- ### To get list of full argument, please type
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
- > To get list of full argument
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', ()=>{