Skip to content

Commit

Permalink
refactor: adopt tests 6
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Jul 21, 2023
1 parent ed51b24 commit a42217f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/user-flow-gh-action-e2e/src/e2e/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ describe('main.js', () => {
}, async (prj :any) => {
const { stdout, _, exitCode } = await prj.exec();

expect(stdout).toContain('Run main');
expect(stdout).toContain('Run user-flow login in main');
expect(stdout).toContain('Get inputs form action.yml');
expect(stdout).toContain('Execute user-flow');
expect(stdout).not.toContain('-onlyComments');
expect(stdout).toContain('--format=md');
expect(stdout).toContain('--url=https://google.com');
//expect(stdout).toContain('--format=html');
Expand All @@ -36,7 +37,7 @@ describe('main.js', () => {
}, async (prj :any) => {
const { stdout, stderr, exitCode } = await prj.exec();

expect(stdout).toContain('Run main');
expect(stdout).toContain('Run user-flow login in main');
expect(stdout).toContain('Get inputs form action.yml');
expect(stdout).not.toContain('Execute user-flow');
expect(stdout).not.toContain('--format=md');
Expand Down
2 changes: 1 addition & 1 deletion packages/user-flow-gh-action/src/app/get-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function getInputs(): GhActionInputs {

// Get and interpolate URL's
let url = core.getInput('url', { trimWhitespace: true });
core.debug(`Input url is ${url}`);
core.debug(`Parsed url is ${url}`);

// @TODO test it or drop it!
url = interpolateProcessIntoUrl(url);
Expand Down

0 comments on commit a42217f

Please sign in to comment.