Skip to content

Commit 8d8b563

Browse files
committed
Test/package.json fix
- replaced 'ServerlessWorkflow' by 'Specification' - replaced 'prepublish' by 'prepublishOnly' Signed-off-by: JBBianchi <[email protected]>
1 parent 32d3e57 commit 8d8b563

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"postbuild": "npx shx cp ./package.json ./README.md ./LICENSE ./dist/",
2424
"verify-publish-directory": "node -e 'if (!process.cwd().endsWith(\"dist\")) { console.error(\"Packaging/Publishing should be done from ./dist/\"); process.exitCode = 1; } process.exit();'",
2525
"prepack": "npm run verify-publish-directory",
26-
"prepublish": "npm run verify-publish-directory"
26+
"prepublishOnly": "npm run verify-publish-directory"
2727
},
2828
"dependencies": {
2929
"ajv": "^8.1.0",

tests/workflow-converter.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
import Workflow = ServerlessWorkflow.Workflow;
1817
import {
1918
workflowBuilder,
2019
injectstateBuilder,
21-
WorkflowConverter
20+
WorkflowConverter,
21+
Specification
2222
} from "../src/";
2323
import { readFileSync } from 'fs';
2424

@@ -43,7 +43,7 @@ describe("workflow-converter fromSource", () => {
4343
];
4444
testCases.forEach(test => {
4545
it(test.description, function () {
46-
const workflow: Workflow = WorkflowConverter.fromString(readFileSync(test.file, 'utf-8'));
46+
const workflow: Specification.Workflow = WorkflowConverter.fromString(readFileSync(test.file, 'utf-8'));
4747
expect(workflow.id).toBe("helloworld");
4848
expect(workflow.version).toBe("1.0");
4949
expect(workflow.name).toBe("Hello World Workflow");

0 commit comments

Comments
 (0)