Skip to content

test: refactor chmod tests to AVA#569

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

test: refactor chmod tests to AVA#569
nfischer merged 1 commit intomasterfrom
test-ava-chmod

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.

@nfischer nfischer added the bash compat Compatibility issues with bash or POSIX behavior label Nov 23, 2016
t.is(result.code, 0);
});

test('No Test Title #27', t => {
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.

We need a title for this test, though I'm not sure what it's testing.

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.

I think this was actually a cleanup step before. There's no harm in running these lines and making sure they succeed though, so I kept them.

});

// TODO(nate): fix this description
test('Test files - the bitmasking is to ignore the upper bits.', t => {
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.

Fix this description too?

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

@freitagbr PTAL.

  • I did the changes requested
  • I made BITMASK a constant
  • I changed this to be a before() instead of a beforeEach() since all these unit tests must run serially (they depend on previous tests). We should probably go through and actually fix this, though.

@freitagbr
Copy link
Copy Markdown
Contributor

LGTM

@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