Skip to content

Commit

Permalink
Fix example group (#3845)
Browse files Browse the repository at this point in the history
* fix: reuse m4 operation group to group examples

* build: release @autorest/testmodeler_v2.3.1
  • Loading branch information
tadelesh authored Aug 5, 2022
1 parent 3ca3dbf commit c046906
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
12 changes: 12 additions & 0 deletions tools/sdk-testgen/packages/autorest.testmodeler/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@autorest/testmodeler",
"entries": [
{
"version": "2.3.1",
"tag": "@autorest/testmodeler_v2.3.1",
"date": "Fri, 05 Aug 2022 09:25:55 GMT",
"comments": {
"patch": [
{
"comment": "Consolidate operation groups for examples with m4."
}
]
}
},
{
"version": "2.3.0",
"tag": "@autorest/testmodeler_v2.3.0",
Expand Down
9 changes: 8 additions & 1 deletion tools/sdk-testgen/packages/autorest.testmodeler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @autorest/testmodeler

This log was last generated on Thu, 21 Jul 2022 06:46:35 GMT and should not be manually modified.
This log was last generated on Fri, 05 Aug 2022 09:25:55 GMT and should not be manually modified.

## 2.3.1
Fri, 05 Aug 2022 09:25:55 GMT

### Patches

- Consolidate operation groups for examples with m4.

## 2.3.0
Thu, 21 Jul 2022 06:46:35 GMT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/testmodeler",
"version": "2.3.0",
"version": "2.3.1",
"description": "Autorest extension for testmodeler",
"main": "dist/index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class MockTestDefinitionModel {
exampleGroups: ExampleGroup[] = [];
public static groupByOperationGroup(exampleGroups: ExampleGroup[]): Record<string, ExampleGroup[]> {
return exampleGroups.reduce((r, exampleGroup) => {
const groupKey = exampleGroup.operationId.split('_')[0];
const groupKey = exampleGroup.operationGroup.$key;
r[groupKey] = r[groupKey] || [];
r[groupKey].push(exampleGroup);
return r;
Expand Down

0 comments on commit c046906

Please sign in to comment.