@ondc/automation-mock-runner 1.3.37 → 1.3.38

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.
@@ -229,7 +229,7 @@ async function buildConfigFromFlowConfig(payloads, flowConfig, domain, version,
229
229
  flowConfig = JSON.parse(JSON.stringify(flowConfig));
230
230
  payloads = [...payloads].sort((a, b) => new Date(a.context.timestamp).getTime() -
231
231
  new Date(b.context.timestamp).getTime());
232
- const config = createInitialMockConfig(domain, version, `${flowConfig.id}_logs_flow_${domain}_v${version}`);
232
+ const config = createInitialMockConfig(domain, version, `${flowConfig.id}`);
233
233
  const mockRunner = new MockRunner_1.MockRunner(config);
234
234
  let index = 0;
235
235
  for (const step of flowConfig.sequence) {
@@ -675,7 +675,7 @@ describe("configHelper", () => {
675
675
  const config = await (0, configHelper_1.generatePlaygroundConfigFromFlowConfig)(payloads, flowConfig);
676
676
  expect(config.meta.domain).toBe("ONDC:TRV14");
677
677
  expect(config.meta.version).toBe("1.5.0");
678
- expect(config.meta.flowId).toBe("sample_flow_logs_flow_ONDC:TRV14_v1.5.0");
678
+ expect(config.meta.flowId).toBe("sample_flow");
679
679
  expect(config.steps).toHaveLength(2);
680
680
  const [searchStepConfig, onSearchStepConfig] = config.steps;
681
681
  expect(searchStepConfig.api).toBe("search");
@@ -716,7 +716,7 @@ describe("configHelper", () => {
716
716
  const config = await (0, configHelper_1.generatePlaygroundConfigFromFlowConfig)(payloads, flowConfig);
717
717
  expect(config.meta.domain).toBe("ONDC:FIS12");
718
718
  expect(config.meta.version).toBe("1.0.0");
719
- expect(config.meta.flowId).toBe("core_version_flow_logs_flow_ONDC:FIS12_v1.0.0");
719
+ expect(config.meta.flowId).toBe("core_version_flow");
720
720
  });
721
721
  it("should handle multiple search requests with different timestamps interspersed with on_search responses", async () => {
722
722
  const payloads = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondc/automation-mock-runner",
3
- "version": "1.3.37",
3
+ "version": "1.3.38",
4
4
  "description": "A TypeScript library for ONDC automation mock runner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",