Skip to content

Commit

Permalink
npalmGH-240 all tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
larmitage-bjss committed Feb 15, 2024
1 parent 513cd72 commit f67990f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 31 deletions.
56 changes: 31 additions & 25 deletions __tests__/action-docs-workflow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,31 +81,37 @@ describe("Test update readme ", () => {
);
});

// test("Readme (inputs) for action_docs_workflow", async () => {
// await testReadme({
// actionFile: path.join(fixtureDir, "action_docs_workflow.yml"),
// originalReadme: path.join(fixtureDir, "action_docs_workflow_readme.input"),
// fixtureReadme: path.join(fixtureDir, "action_docs_workflow_readme.output"),
// });
// });

// test("Readme for two workflow.yml-s", async () => {
// await testReadme(
// {
// actionFile: path.join(fixtureDir, "action_docs_workflow.yml"),
// originalReadme: path.join(fixtureDir, "two_workflows_readme.input"),
// fixtureReadme: path.join(fixtureDir, "two_workflows_readme.output"),
// },
// {},
// false,
// );

// await testReadme({
// actionFile: path.join(fixtureDir, "all_fields_workflow.yml"),
// originalReadme: path.join(fixtureDir, "two_workflows_readme.input"),
// fixtureReadme: path.join(fixtureDir, "two_workflows_readme.output"),
// });
// });
test("Readme (inputs) for action_docs_workflow", async () => {
await testReadme({
actionFile: path.join(fixtureDir, "action_docs_workflow.yml"),
originalReadme: path.join(
fixtureDir,
"action_docs_workflow_readme.input",
),
fixtureReadme: path.join(
fixtureDir,
"action_docs_workflow_readme.output",
),
});
});

test("Readme for two workflow.yml-s", async () => {
await testReadme(
{
actionFile: path.join(fixtureDir, "action_docs_workflow.yml"),
originalReadme: path.join(fixtureDir, "two_workflows_readme.input"),
fixtureReadme: path.join(fixtureDir, "two_workflows_readme.output"),
},
{},
false,
);

await testReadme({
actionFile: path.join(fixtureDir, "all_fields_workflow.yml"),
originalReadme: path.join(fixtureDir, "two_workflows_readme.input"),
fixtureReadme: path.join(fixtureDir, "two_workflows_readme.output"),
});
});
});

describe("Test usage format", () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- action-docs-inputs action="__tests__/fixtures/workflow/action_docs_workflow.yml" -->
## Inputs
### Inputs

| name | description | required | default |
| --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixtures/workflow/two_workflows_readme.input
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- action-docs-inputs action="__tests__/fixtures/workflow/action_docs_workflow.yml" -->
## Inputs
### Inputs

| name | description | required | default |
| --- | --- | --- | --- |
Expand Down
8 changes: 4 additions & 4 deletions __tests__/fixtures/workflow/two_workflows_readme.output
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- action-docs-inputs action="__tests__/fixtures/workflow/action_docs_workflow.yml" -->
## Inputs
### Inputs

| name | description | required | default |
| --- | --- | --- | --- |
Expand All @@ -9,11 +9,11 @@
| `lineBreaks` | <p>Line breaks to be used in updated readme (LF|CR|CRLF).</p> | `false` | `LF` |
<!-- action-docs-inputs action="__tests__/fixtures/workflow/action_docs_workflow.yml" -->

<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_action.yml" -->
## Outputs
<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_workflow.yml" -->
### Outputs

| name | description |
| --- | --- |
| `outputA` | <p>A description A</p> |
| `outputB` | <p>A description B</p> |
<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_action.yml" -->
<!-- action-docs-outputs action="__tests__/fixtures/workflow/all_fields_workflow.yml" -->

0 comments on commit f67990f

Please sign in to comment.