What's the purpose of this unit test?
I'm looking into testing database operations so I'm reading this blog post on unit testing.
The first unit test written is this:
which tests this function:
But I don't get what this is supposed to test.
The first unit test written is this:
which tests this function:
But I don't get what this is supposed to test.
upsertTags is one big transaction. So when you mock a transaction's return value and later test the mock, how does that test the behavior of the function in any way?