Skip to content

test: refactor echo tests to AVA#575

Merged
nfischer merged 1 commit intomasterfrom
test-ava-echo
Nov 25, 2016
Merged

test: refactor echo tests to AVA#575
nfischer merged 1 commit intomasterfrom
test-ava-echo

Conversation

@nfischer
Copy link
Copy Markdown
Member

@freitagbr ready for review

test.cb('simple test with defaults', t => {
const script = 'require(\'../global.js\'); echo("hello", "world");';
utils.runScript(script, (err, stdout, stderr) => {
t.is(stdout, 'hello world\n');
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.

I think all of these tests should have the following line:

t.falsy(err);

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

@freitagbr
Copy link
Copy Markdown
Contributor

LGTM

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