biz-a-cli 2.3.24 → 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.24",
4
+ "version": "2.3.25",
5
5
  "versionDev": "0.0.30",
6
6
  "description": "",
7
7
  "main": "bin/index.js",
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', ()=>{