Skip to content

test: refactor shjs tests to AVA#625

Merged
freitagbr merged 1 commit intomasterfrom
test-ava-shjs
Dec 20, 2016
Merged

test: refactor shjs tests to AVA#625
freitagbr merged 1 commit intomasterfrom
test-ava-shjs

Conversation

@nfischer
Copy link
Copy Markdown
Member

ready for review

ava-test/shjs.js Outdated
// prefix with 'node ' for Windows, don't prefix for unix
const binPath = path.resolve(__dirname, '../bin/shjs');
const cmd = `${process.platform === 'win32' ? JSON.stringify(process.execPath) +
' ' : ''}${binPath}`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put the first bit on another line?

const execPath = process.platform === 'win32' ? JSON.stringify(process.execPath) + ' ' : '';
const cmd = `${execPath} ${binPath}`;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@nfischer
Copy link
Copy Markdown
Member Author

PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants