Skip to content

Test require clean up and refactoring to remove BufferList global #2221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 17, 2020

Conversation

sehrope
Copy link
Contributor

@sehrope sehrope commented May 16, 2020

Some more test cleanup that:

  • Replaces __dirname concatenation in require(...) statements with relative paths to allow for IDE code navigation (e.g. F12 in VS Code).
  • Removes some unused functions and local variables
  • Removes some unused imports
  • Replaces global BufferList with localized require

sehrope added 5 commits May 16, 2020 07:41
…paths

Replaces __dirname concatentation in pg test scripts so that editors like
VS Code can automatically generate typings and support code navigation (F12).
Removes unused count var. Sink function below it shadows the variable within
its add(...) function so file level count variable is never used.
Removes assigning BufferList to a global in top level test-helper and adds explicit
require in the tests that need to access it.
Copy link
Collaborator

@charmander charmander left a comment

Choose a reason for hiding this comment

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

Yay improvements!

@charmander charmander merged commit ff302b1 into brianc:master May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants