Skip to content
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

Add base.js to coverage report #176

Merged
merged 3 commits into from
Jun 4, 2020
Merged

Conversation

rmeritz
Copy link
Contributor

@rmeritz rmeritz commented Jun 2, 2020

  • Added some documentation about testing to README
  • Added a editorconfig to ensure spacing works correctly by default across editors
  • Added base.js to coverage report
  • It was mostly already well tested
  • There were some functions prefixed with _ that weren't tested but I believe they are meant to be private and not tested so I ignored them
  • Added a test for getId
  • Added coverage for #doCall and #createFunctor because it is doubtful that they really are meant to be part of a public interface and would probably not be considered a breaking change if they were changed. #doCall isn't actually called outside of table.js and probably should be prefixed by an underscore.

rmeritz added 3 commits June 2, 2020 11:31
- The main public functions were already tested
- `#createFunctor` and `#doCall` is tested `airtable.test.js` where is is used because
it probably not really meant to be a public api
@rmeritz rmeritz force-pushed the base-tests-rmeritz branch from d197d3e to 36d1fc0 Compare June 3, 2020 17:26
Copy link
Contributor

@kasrak kasrak left a comment

Choose a reason for hiding this comment

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

Generally agree with not writing tests for private methods which are prefixed with _. The tests for the public methods should cover them.

@jugglinmike
Copy link
Contributor

@kasrak neither Rebecca nor I have "write" access to this repository, so we can't merge this even with your approval.

@kasrak kasrak merged commit 676dc24 into Airtable:master Jun 4, 2020
rmeritz added a commit to bocoup/airtable.js that referenced this pull request Jun 10, 2020
* Update README with info about how to run tests

* Complete tests for base.js

- The main public functions were already tested
- `#createFunctor` and `#doCall` is tested `airtable.test.js` where is is used because
it probably not really meant to be a public api

* Add an editorconfig file

https://editorconfig.org/
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.

3 participants