SIGN IN SIGN UP

test: remove await from code samples (#1229)

* Remove await

Remove await from the sample. It is preventing the sample from working.

* Remove await from samples

await causes the code sample not to work so needs to be removed

* Restructure the OR query code sample

The OR query code sample should be run in a similar way to the other code samples.

* Cleanup and change assert

There is no guarantee that the integration test database will have no Buy Milk or Feed cats data in the database to begin with so we will have to make sure to remove all such data so that the test starts with no such data in datastore. This is a requirement for the console output to be correct.

Also, since we now use execSync, the standard output cannot be found in console.log.firstCall.args[0] so we have to get it from stdout just like in the other tests.

* inline the test variable

Inline simple local variables as suggested in PR feedback.
D
danieljbruce committed
76a5a52a76aa88fde11113195c77a498d88940ac
Parent: 4e2cd7e
Committed by GitHub <noreply@github.com> on 1/29/2024, 6:30:28 PM