You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the test group that starts at the above line, it isn't clear to me that the results of the tests are actually being tested? What validates that the counters are created? What validates that the incremented value is correct?
The text was updated successfully, but these errors were encountered:
@gregfenton most of the tests here are only to ensure that the code is syntactically valid and doesn't throw immediate exceptions. We don't test that they produce the intended backend result, although if you want to submit a PR to improve any of the tests to be more meaningful we'd be happy to review!
My main concern is that this snippet is highlighted in the documentation as the source for the Distributed Counters pattern. But these tests do not show how to use the pattern. So we are left to figure things out on our own?
snippets-web/firestore/test.solution-counters.js
Line 49 in c5bfca3
In the test group that starts at the above line, it isn't clear to me that the results of the tests are actually being tested? What validates that the counters are created? What validates that the incremented value is correct?
The text was updated successfully, but these errors were encountered: