Skip to content

test: refactor dirs tests to AVA#572

Merged
nfischer merged 1 commit intomasterfrom
test-ava-dirs
Nov 24, 2016
Merged

test: refactor dirs tests to AVA#572
nfischer merged 1 commit intomasterfrom
test-ava-dirs

Conversation

@nfischer
Copy link
Copy Markdown
Member

This is an automated PR, so double check that I got all the test cases. I'll follow up once I've verified that this translates everything correctly.

import shell from '..';

test.beforeEach(() => {
shell.config.silent = true;
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.

This line doesn't need to be in beforeEach.

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.

Let's leave it here. It's harmless to set it to silent repeatedly, and it's safer in case someone accidentally unsets it in one of the tests.

As long as there's some set up to be done in the beforeEach, I think it's better to just leave lines like this in there as well (unless they need to only be performed once).

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.

Ok, sure.

@freitagbr
Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@nfischer
Copy link
Copy Markdown
Member Author

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