Skip to content

Commit 26ee280

Browse files
authored
Fix typo in error message (#268)
Signed-off-by: Lorna Kelly <lornakelly88@gmail.com>
1 parent 33818d0 commit 26ee280

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@serverlessworkflow/sdk",
3-
"version": "1.0.3-alpha2",
3+
"version": "1.0.3-alpha3",
44
"schemaVersion": "1.0.3",
55
"supportedDslVersions": ">=1.0.0 <=1.0.3",
66
"description": "Typescript SDK for Serverless Workflow Specification",

src/lib/hooks/workflow-hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const WorkflowHooks = {
2727

2828
if (!isSupportedDsl) {
2929
throw new Error(
30-
`'Workflow' is invalid - The DSL version of the workflow '${dsl}' does not saisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
30+
`'Workflow' is invalid - The DSL version of the workflow '${dsl}' does not satisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
3131
);
3232
}
3333
return;

tests/validation/workflow-validation.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('Workflow validation', () => {
6868
},
6969
});
7070
expect(() => workflow.validate()).toThrow(
71-
`The DSL version of the workflow '${oldVersion}' does not saisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
71+
`The DSL version of the workflow '${oldVersion}' does not satisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
7272
);
7373
});
7474

@@ -83,7 +83,7 @@ describe('Workflow validation', () => {
8383
},
8484
});
8585
expect(() => workflow.validate()).toThrow(
86-
`The DSL version of the workflow '${newerVersion}' does not saisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
86+
`The DSL version of the workflow '${newerVersion}' does not satisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
8787
);
8888
});
8989

@@ -146,7 +146,7 @@ describe('Workflow validation', () => {
146146
},
147147
});
148148
expect(() => workflow.validate()).toThrow(
149-
`The DSL version of the workflow '${preReleaseVersion}' does not saisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
149+
`The DSL version of the workflow '${preReleaseVersion}' does not satisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
150150
);
151151
});
152152

@@ -161,7 +161,7 @@ describe('Workflow validation', () => {
161161
},
162162
});
163163
expect(() => workflow.validate()).toThrow(
164-
`The DSL version of the workflow '${preReleaseVersion}' does not saisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
164+
`The DSL version of the workflow '${preReleaseVersion}' does not satisfy the DSL version range supported by this SDK '${supportedDslVersions}'.`,
165165
);
166166
});
167167
});

0 commit comments

Comments
 (0)