Skip to content

Conversation

@davimacedo
Copy link
Member

No description provided.

@davimacedo
Copy link
Member Author

Close #6019

@codecov
Copy link

codecov bot commented Sep 3, 2019

Codecov Report

Merging #6022 into master will increase coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6022      +/-   ##
==========================================
+ Coverage   93.77%   93.91%   +0.14%     
==========================================
  Files         164      164              
  Lines       11096    11084      -12     
==========================================
+ Hits        10405    10410       +5     
+ Misses        691      674      -17
Impacted Files Coverage Δ
src/RestWrite.js 93.39% <0%> (-0.34%) ⬇️
src/GraphQL/loaders/defaultGraphQLTypes.js 96.26% <0%> (-0.14%) ⬇️
src/GraphQL/helpers/objectsQueries.js 98.03% <0%> (ø) ⬆️
src/GraphQL/loaders/parseClassQueries.js 97.56% <0%> (ø) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.94% <0%> (+0.7%) ⬆️
src/GraphQL/loaders/parseClassTypes.js 94.44% <0%> (+8.03%) ⬆️
src/GraphQL/transformers/query.js 66.66% <0%> (+19.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 723fe3b...27a8a26. Read the comment docs.

expect(call.args[2].session).toBe(undefined);
});
expect(found).toBe(true);
databaseAdapter.database.serverConfig.cursor.calls
Copy link
Contributor

Choose a reason for hiding this comment

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

Including an assertion of the number of calls would be a good idea, since you're not using found.

Copy link
Member Author

Choose a reason for hiding this comment

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

I am actually not sure that the other operations will be called. The right one is the one with the found. I added the others just in case.

Copy link
Contributor

Choose a reason for hiding this comment

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

I took the freedom to commit the separation of these tests. What do you think?

@davimacedo davimacedo merged commit ad40386 into parse-community:master Sep 5, 2019
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* Test transactions

* test: Separate transaction tests for SDK
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