cabloy 5.1.181 → 5.1.182

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/.cabloy-version CHANGED
@@ -1 +1 @@
1
- 5.1.181
1
+ 5.1.182
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.1.182
4
+
5
+ ### Improvements
6
+
7
+ - Update the `{{resourceName}}.test.ts_` test template.
8
+
3
9
  ## 5.1.181
4
10
 
5
11
  ### Improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cabloy",
3
- "version": "5.1.181",
3
+ "version": "5.1.182",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A Node.js fullstack framework",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-cli",
3
- "version": "1.1.152",
3
+ "version": "1.1.153",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "vona cli",
6
6
  "keywords": [
@@ -25,13 +25,14 @@ describe('<%=argv.resourceName%>.test.ts', { concurrency: false }, () => {
25
25
  '<%=argv.moduleInfo.relativeName%>::<%=argv.resourceNameCapitalize%>Controller',
26
26
  );
27
27
 
28
+ const moduleApiPath = app.util.combineApiPath('<%=argv.moduleActionPathRaw%>', '', true, true);
28
29
  const expectedSummaries = {
29
- create: ['post', '<%=argv.moduleActionPathRaw%>', 'Create <%=argv.resourceNameCapitalize%>'],
30
- select: ['get', '<%=argv.moduleActionPathRaw%>', 'Query <%=argv.resourceNameCapitalize%> List'],
31
- view: ['get', '<%=argv.moduleActionPathRaw%>/{id}', 'View <%=argv.resourceNameCapitalize%>'],
32
- update: ['patch', '<%=argv.moduleActionPathRaw%>/{id}', 'Update <%=argv.resourceNameCapitalize%>'],
33
- delete: ['delete', '<%=argv.moduleActionPathRaw%>/{id}', 'Delete <%=argv.resourceNameCapitalize%>'],
34
- deleteBulk: ['post', '<%=argv.moduleActionPathRaw%>/bulk/delete', 'Bulk Delete <%=argv.resourceNameCapitalize%>'],
30
+ create: ['post', moduleApiPath, 'Create <%=argv.resourceNameCapitalize%>'],
31
+ select: ['get', moduleApiPath, 'Query <%=argv.resourceNameCapitalize%> List'],
32
+ view: ['get', `${moduleApiPath}/{id}`, 'View <%=argv.resourceNameCapitalize%>'],
33
+ update: ['patch', `${moduleApiPath}/{id}`, 'Update <%=argv.resourceNameCapitalize%>'],
34
+ delete: ['delete', `${moduleApiPath}/{id}`, 'Delete <%=argv.resourceNameCapitalize%>'],
35
+ deleteBulk: ['post', `${moduleApiPath}/bulk/delete`, 'Bulk Delete <%=argv.resourceNameCapitalize%>'],
35
36
  } as const;
36
37
  for (const [action, [method, path, summary]] of Object.entries(expectedSummaries)) {
37
38
  const apiJson = await app.bean.openapi.generateJsonOfControllerAction(
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
- "version": "1.1.150",
3
+ "version": "1.1.151",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "vona cli-set-api",
6
6
  "keywords": [