Skip to content

refactor: Change the location of the commit code and add some tests #5

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

Draft
wants to merge 18 commits into
base: nodejs-transaction-change-run
Choose a base branch
from

Conversation

danieljbruce
Copy link
Owner

Will add description.

The internals of commit should be moved to a new function. This way we can sandwich a commit async call between commit and runCommitAsync.
Make sure commit behaves the same way as before.
Commit tests added to ensure that commit behaves the same way as before.
The tests should pass before we make changes to commit.
One of the mocks does not need to be written twice
This is going to be a useful test for mocking out various layers to make sure they work the same way as before.
The mocked transaction wrapper should reset all mocked gapic functions and not have to be told which ones to reset.
Gapic mocked tests for run aggregation query need to be written that use the mock transaction object.
The runQuery tests are finished so we can use this to take apart the function from end to end.
The get tests now make sure that the data coming back from the gapic layer results in the same values for users.
try/catch logic in the test suite is added so that errors bubble up to the test runner and it is easier to see why tests failed
…nieljbruce/nodejs-datastore into nodejs-transaction-redesign-feature-branch-1a-add-commit-tests
…t-tests' of https://github.com/danieljbruce/nodejs-datastore into nodejs-transaction-redesign-feature-branch-2-adding-commit

# Conflicts:
#	src/transaction.ts
…mit' of https://github.com/danieljbruce/nodejs-datastore into nodejs-transaction-redesign-feature-branch-2a-adding-commit-and-tests

# Conflicts:
#	test/transaction.ts
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.

1 participant