Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WMXPY committed Oct 14, 2023
1 parent f141cb3 commit 0b324cc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/execute/executer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { PubWorkflowConfiguration } from "../workflow/definition/configuration";
import { PubExecuteParameters } from "../orchestration/definition/execute";
import { OrchestrationResourceManager } from "../orchestration/resource/manager";
import { resumeExecute } from "./resume-execute";
import { createStrictMapPattern } from "@sudoo/pattern";

export class PubExecuter {

Expand Down Expand Up @@ -44,7 +45,9 @@ export class PubExecuter {
if (!verifyResult) {

throw PubExecuteVerifyInvalidParametersError.create(
this._configuration.startParametersPattern,
createStrictMapPattern(
this._configuration.startParametersPattern,
),
parameters,
);
}
Expand Down Expand Up @@ -74,7 +77,9 @@ export class PubExecuter {
): boolean {

const verifier: Verifier = Verifier.create(
this._configuration.startParametersPattern,
createStrictMapPattern(
this._configuration.startParametersPattern,
),
);

if (!verifier.verify(parameters)) {
Expand Down

0 comments on commit 0b324cc

Please sign in to comment.