Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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